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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 从事编程的时间已经有几年了,从在学校的小打小闹的编程到现在的在专 门的从事电脑编程的软件公司工作已经有几年了,感慨万千,这中间有过许许多多的...
    从事编程的时间已经有几年了,从在学校的小打小闹的编程到现在的在专 门的从事电脑编程的软件公司工作已经有几年了,感慨万千,这中间有过许许多多的 酸甜苦辣,以及有着许许多多的不眠之夜,在此我首先感谢我的朋友们对我的支持, 谢谢你们,同时还要谢谢那些老前辈留下的那些技巧,在我每次面对问题要解决的时 候,是你们辛苦地摸索出来的东西让我豁然开朗,问题迎刃而解. 写这些东西的缘由说来也颇为简单,因为自己觉的有很多的技巧应该与大 家分享,同时也希望我平常所收集的以及我的个人心得能帮助所有编程序的人员 , 能将我写的这个东西成为你编程的宝典,由于是我第一次做这样的东西,难免会有这 样或是那样的不足之处,还请广大朋友指正. 由于技巧不断的更新 , 所以这个东西也 要不断的更新,我第一次首先尝试制作有关Delphi的技巧,由于我现在用的是她,所以 先写Delphi的技巧,其他的诸如VB、VC的技巧等我整理以后再进行制作,还希望广 大的网友多多支持。-Programming time has been engaged for several years, chipping away from the school of programming to the current in the tertiary The door in computer programming, software company, has been for several years, and filled with emotion, which had many of the middle Ups and downs, as well as with many sleepless nights, and I begin to thank my friends for their support, Thank you, thank you to those old-timers while also leaving those skills in every time I face the problem to be solved when the Hou, yes you have worked hard to
    2022-05-06 05:27:49下载
    积分:1
  • 111
    说明:  C#仓库管理系统源码,网上已经有很多了,但是有很多不能用,或者老是出现问题,这个绝对没有问题。(C# source code warehouse management system, online has a lot, but many can not, or always a problem, this is absolutely no problem.)
    2010-04-04 09:16:16下载
    积分:1
  • 39.3
    说明:  编制程序,将输入的一行字符以加密的形式输出,然后将其解密,解密的字符串序列与输入的正文相比较,吻合时输出解密的正文,否则解密失败。 加密时,将每个字符的ascii码依次反复加上“4962873”中的数字,并在32(‘’)~122(‘z’)之间作模运算。解密与加密的顺序相反。例如输入正文“the result of 3 and 2 is not 8” 结果为: (Programming, the input line character output in an encrypted form, and then decrypted, the decrypted text sequence of characters compared with the input, output to decrypt the body of the agreement, otherwise the decryption failed. Encryption, ascii code of each character in turn repeatedly with &quot 4962873&quot in the figures, and 32 (' ' )~ 122 (' z' ) as a model between the operations. Decryption and encryption in reverse order. For example, enter the text &quot the result of 3 and 2 is not 8&quot results:)
    2011-04-05 08:43:48下载
    积分:1
  • HookKey
    Inline hook KeyboardClassServiceCallback实现键盘记录(Inline hook KeyboardClassServiceCallback achieved keylogger)
    2020-10-20 11:27:24下载
    积分:1
  • MergeSort
    并行归并排序算法,基于mpi的并行归并排序算法(A parallel merge sort algorithm)
    2020-11-20 14:59:38下载
    积分:1
  • VisualStudio2010入门教程
    说明:  VS2010的入门讲解,适合新手使用,学习如何使用VS2010.(Introduction to VS2010)
    2020-06-24 08:20:02下载
    积分:1
  • D_Motor
    AT89C51控制步进电机,实现正反转加减速,驱动芯片是ULN2803.(AT89C51 control the stepper motor to achieve reversing acceleration and deceleration, the driver chip is the ULN2803.)
    2011-05-30 21:09:36下载
    积分:1
  • push_air20170322
    说明:  ADS1220基于STM32程序,keil4版本(ADS1220 based on STM32 Program)
    2019-04-11 15:42:16下载
    积分:1
  • stm32f10x_it
    SPWM波产生,keil软件代码,C语言编写程序(SPWM Wave Generation, Keil Software Code, C Language Programming)
    2020-06-18 09:40:01下载
    积分:1
  • PWM_T1C1
    stm32产生多路pwm源码,定时器1产生4通道独立的pwm信号(Stm32 produce multiplex PWM source, timer 1 to generate 4 channel independent of the PWM signal)
    2015-05-17 22:42:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载