登录
首页 » c » MCU实战经验---多种的按键处理

MCU实战经验---多种的按键处理

于 2022-02-16 发布 文件大小:3.86 kB
0 58
下载积分: 2 下载次数: 1

代码说明:

MCU实战经验---多种的按键处理 之前的一个项目按键比较多,面板上面有按键,遥控器,处理的稍微复杂一点,MCU使用的是STM8S005K6. 关于按键部分的处理,现在拿处理来和大家分享一下,说的不对的地方还请各位大侠请教,大家共同进步。   按键通常分有IO口按键(BUTTON),AD按键(通过AD采样电压),IR(遥控器) 按按键功能分:有短按键,长按键,连续按键。打个比方,遥控电视机,按一下音量键,音量增加1,这个就是短按键。 按住音量键不放,音量连续加,这个就是连续按键。按住一个按键5s,系统会复位,这个是长按键。  

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 2009102816302101
    详细讲解了VC++使用ADO对SQL SERVER的操作(Explained in detail the use of ADO in VC++ the operation of SQL SERVER)
    2009-11-02 17:39:39下载
    积分:1
  • StressMark压力测试程序
    StressMark测试软件是一个使用Visual C++编写的,开放源代码的测试工具,可以完成服务程序及重要算法的功能和性能测试,其最主要的功能是模拟多线程或多客户端的自动化压力测试。(StressMark test software is a Visual C prepared in the open-source testing tool, service procedures to be completed and important algorithm functional and performance tests, its main function is simulated multi-threaded or multi-client automation pressure tests.)
    2005-05-02 02:44:47下载
    积分:1
  • vfwwnd
    我近期从事视频开发所以将我参考的资料上传给大家看看。(I recently engaged in video development, therefore, refer to the information I upload to the U.S. to see.)
    2008-07-02 11:33:12下载
    积分:1
  • STC89C51-1602-DS1302-proteus
    利用STC公司的51单片机和DS1302编写的简单时钟,用于单片机入门试验,可供初学者学习借鉴(The use of STC' s 51 single and DS1302 write a simple clock for the microcontroller entry test for beginners to learn from)
    2011-06-28 12:53:02下载
    积分:1
  • HuffMan
    实现hufman功能,能将任何输入的文本转化为二进制文件(Achieve hufman function, can enter text into any binary file)
    2013-05-26 17:38:24下载
    积分:1
  • clgl实例,cscl是opengl的c#封装
    clgl实例,cscl是opengl的c#封装,用第三方插件是CSGL,    关键是使用其提供的两个DLL:csgl.dll 和 csgl.native.dll,csgl.dll是开发使用的,在一个C#工程中,用“项目”->“添加引用”->“浏览”找到csgl.dll 引用。然后把两个dll都放到程序目录在运行时使用。      在需要使用OpenGL函数的cs文件的using声明中,加上:using CsGL.OpenGL命名空间,就可以使用静态GL类调用OpenGL函数和变量了,比如GL.glRotatef       而对于显示OpenGL窗口,需要自己建立一个从CsGL.OpenGL.OpenGLControl类继承的控制类,并至少做以下重构:
    2022-04-17 08:28:53下载
    积分:1
  • BmpToRGB16
    convert bmp to rgb565(algorithm to handle all kinds of bmp to rgb565)
    2009-09-16 12:59:03下载
    积分:1
  • machine_code_to_mips
    机器码转换为汇编码,将指令存在计算机内的编码及机器码转换为mips汇编语言(machine code to mips)
    2015-06-21 13:17:18下载
    积分:1
  • loess-master
    局部加权平均算法,用于时间序列预测,大家看着给点好处就好(Local weighted average algorithm for time series prediction.)
    2021-04-12 18:48:57下载
    积分:1
  • ANN_matlab_916006583
    一个介绍如何用matlab模拟实现ANN的文章,对于学习ANN的人来说非常值得一读(1 describes how to use matlab simulation to achieve ANN article, for those who study ANN is very well worth reading)
    2009-12-30 09:39:03下载
    积分:1
  • 696518资源总数
  • 105562会员总数
  • 1今日下载