搜索资源列表
KEY
- 键盘状态扫描函数 /* 键盘扫描函数 读取当前键盘的状态 有按键按下返回相应按键值 无按键按下返回\"0x00\" */
key.c
- 该代码为NIOSII中按键模块的硬件驱动,按键为4x4行列式键盘,通过行列扫描获取键值
按摩器——按键扫描
- 本程序对于单片机的初学者有很大的帮助,对于按键不太懂的学者,是很值的看到的,此程序是采用了SONIX系列单片机编程的
按键程序
- 键盘扫描方法是:行线P10~P13为输出线,列线P14~P17为输入线。一开始单片机将行线(P10~P13)全部输出低电平,此时读入列线数据,若列线全为高电平则没有键按下,当列线有出现低电平时调用延时程序以此来去除按键抖动。延时完成后再判断是否有低电平,如果此时读入列线数据还是有低电平,则说明确实有键按下。最后一步确定键值。现在我们以第二行的S5键为例,若按下S5后我们应该怎么得到这个键值呢?当判断确实有键按下之后,行线轮流输出低电平,根据读入列线的数据可以确定键值。首先,单片机将P10输出为低
io_driver
- 1602 lcd 显示驱动 与按键监测 控制口 rs=P0^7 rw=P3^3 sbit ep=0xc4 数据接口 P2 24M时钟 显示范围为 0~9 A~Z a~z : - / < > . 按键 P1 共计16个按键键值1~16 返回0表示无键入 -1602 lcd display driver with key monitoring and control port rs = P0 ^ 7 rw = P3 ^ 3 sbit ep = 0x
plane_complete
- 基于ucgui的打飞机程序 通过扫描按键控制我机移动(只有4个按键,我们就设置了前后左右4个方向按键,子弹设为自动发射) 敌机移动通过rand函数产生(设敌机最大数为ENEMYMAXNUM,只要低于这数,每次循环就产生敌机否则不生成敌机.敌机只会在Y轴移动,如果敌机与我机相撞,,则发生爆炸) 敌机子弹生成与移动(每架敌机子弹数最多为BULLETMAXNUM,低于这个值,每个循环都会在飞机正前方产生一颗子弹,在Y轴方向移动SPEED.Y.如果子弹碰到我机,则发生爆炸,LIFE减
Exp4_1
- ucos arm 编程 通过 ARM的 rPDATC(低四位)和rPDATE(4~7 位)扩展4×4的键盘,编 的驱动,通过按键可以在超级终端上和液晶屏上显示相应的键值(不带操作系统 求在超级终端上显示) 。 -ucos arm programming through the ARM s rPDATC (low 4) and rPDATE (4 ~ 7-bit) expansion of 4 × 4 keyboard, the driver made by keys in Hyper
Keyscan
- 8255与键盘扫描单元完成按键扫描功能,并将读到的按键值依次显示在数码管上,按键是4行*4列共16个按键-8255 with the completion of the keyboard key scanning scanning unit, and read the key value is in turn displayed on the digital control, the key is 4* 4 rows of 16 keys
Infrared-remote-control
- 通过红外遥控器对继电器喇叭控制,并在液晶显示按键值-Infrared remote control on the relay through the speaker control, and key value in the liquid crystal display
18b20duodaianjiance
- 利用三个ds18b20检测不同地方的温度,并在12864lcd上显示,lcd同时具有时钟的功能,可利用按键调节时间,同时可利用按键设定温度值报警-Detected using three different places ds18b20 temperature, and 12864lcd display, lcd also has the function of the clock can be used to adjust the key time and temperature values
ANJIAN
- MSP430单片机中断与按键显示,P1口四个中断,静态法。键值为1.2.a.b.四个。-MSP430 microcontroller interrupt and button to display, P1 port four interrupt, static method. Key to 1.2.ab four.
lcd1602
- 宏晶科技最新型号STC10C5A60S2的lcd1602显示矩阵按键值代码,经过验证。-Wang Jing Science and Technology of lcd1602 display the latest models STC10C5A60S2 key value matrix code, to be verified.
Matrix-keyboard
- 该文件实现了 4 * 4 键盘的试验。通过数码管的最后一位来显示 当前的按键值-The file realized 4* 4 keyboard experiment. Through the digital pipe of the last to display The current key values
Key
- 按键中断显示程序 说明:P1、2口按键中断后,P4、5口输出按键值keyvaluep1、keyvaluep2显示数字-Key interrupt display program
ex79
- 使用矩阵键盘设计的一个简易电子琴,为每个按键指定一个按键值。-A simple keyboard matrix keyboard design, specify a key value for each key.
anjian
- 51按键程序,按键抬起后才输出按键值。查询方式-51 key procedures, the key to lift output after the key value. Query
JUZHENG
- STC89C52的矩阵键盘扫描,并通过数码管显示按键值-STC89C52 matrix keyboard scan and displays key values through digital
anjianxianshi
- 扫描键盘程序,将按键值显示在数码管上,基于msp430f149单片机-Keyboard scanning procedures, the key will be displayed on the digital control, microcontroller based msp430f149
CH451
- 基于CH451的键盘扫描程序设计采用AVR单片机ATmega16进行读取CH451的接收到的按键值,CH451可以实现8*8矩阵键盘输入,且带有中断提醒,接收到的按键值在12864液晶上显示。程序中采用的是2*3矩阵。系统采用AVR Studio+WinAVR构成的AVR GCC编译环境。-CH451 based keyboard scanner design uses AVR microcontroller ATmega16 reads received the key value CH451
10-30-江-按键点灯-
- STM32按键点点灯,利用中断或者读取按键电平值来点点灯(STM32 button point light, use interruption or read the value of the key level to point the light)