Location:
Search - KEY4
Search list
Description: 1. beep -- PWM测试
为 ADS1.2 下编译的项目, 在sdt2.51的ADW里调试,该程序运行后在57600的超级终端里按PC机键盘的“+”“-” 按键,可以听到BUZZ增大减小的声音。
2. key -- 按键测试
为 SDT2.51 下编译的项目, 在sdt2.51的ADW里调试,该程序运行后按FS44B0X上的按键key1 key2 key3 key4 相应的发光二极管亮
3 keyint -- 按键中断测试
该项目在SDT2.51下编译调试。主程序是while空循环,中断服务程序对应四个按键做相应的处理,key1 按键点亮D1灯,并在串口打印信息,因为没有加按键去抖动程序,所以,一次按键,产生几次中断。
-1. Beep -- PWM ADS1.2 testing for the project under the Build, in the ADW sdt2.51 Lane debugging, after running the 57,600 in the Super Terminal Lane by PC keyboard "" "-" buttons, Buzz can be increased to reduce heard voices. 2. Key -- SDT2.51 key test for the project under the Build, in the ADW sdt2.51 Lane debugging, after running the program on the button FS44B0X key1 key2 key3 key4 corresponding LED top-three keyint -- interrupted test button in the project under the Build SDT2.51 debugging. While space is the main program cycle, interrupt service routine correspondence four keys handled accordingly. key1 D1 lights lit keys, and Serial Print information, because no buttons to increase jitter, and therefore, a button. several have interrupted.
Platform: |
Size: 507339 |
Author: 张淼林 |
Hits:
Description: 配合315M RF接收模块工作,RF模块收到遥控数据后会通过UART向PC机发送Key1,Key2,Key3,Key4按键信息
RF Remote Control监控UART数据接收,当接收到Key1后发送虚拟按键Ctrl+Right,收到Key2后发送虚拟按键Ctrl+Left,用于控制Winamp等播放工具执行上一首,下一首等操作
虚拟按键使用了winio.vxd,驱动级模拟
Platform: |
Size: 73695 |
Author: michael |
Hits:
Description: 单片机数字钟-LCD1602显示 带四键时钟 按键对应关系:
key1 —— 减
key2 —— 加
key3 —— 设定
key4 —— 确定
Platform: |
Size: 50004 |
Author: qing |
Hits:
Description: using System;
using System.Collections.Generic;
using System.Text;
namespace NewestCOServer
{
public class Cryption
{
class CryptCounter
{
UInt16 m_Counter = 0;
public byte Key2
{
get { return (byte)(m_Counter >> 8); }
}
public byte Key1
{
get { return (byte)(m_Counter & 0xFF); }
}
public void Increment()
{
m_Counter++;
}
}
private CryptCounter _decryptCounter;
private CryptCounter _encryptCounter;
private byte[] _cryptKey1;
private byte[] _cryptKey2;
private byte[] _cryptKey3;
private byte[] _cryptKey4;
private bool Decrypt2 = false;
public Cryption()
{
_decryptCounter = new CryptCounter();
_encryptCounter = new CryptCounter();
_cryptKey1 = new byte[0x100];
_cryptKey2 = new byte[0x100];
byte i_key1 = 0x9D;
byte i_key2 = 0x62;
for (int i = 0; i 4 | buffer[i] < 4 | buffer[i] < 4 | buffer[i] << 4);
buffer[i] ^= (byte)(_cryptKey4[_decryptCounter.Key2] ^ _cryptKey3[_decryptCounter.Key1]);
_decryptCounter.Increment();
}
}
}
public void GenerateKeys(UInt32 CryptoKey, UInt32 AccountID)
{
UInt32 tmpkey1 = 0, tmpkey2 = 0;
tmpkey1 = ((CryptoKey + AccountID) ^ (0x4321)) ^ CryptoKey;
tmpkey2 = tmpkey1 * tmpkey1;
_cryptKey3 = new byte[256];
_cryptKey4 = new byte[256];
for (int i = 0; i < 256; i++)
{
int right = ((3 - (i % 4)) * 8);
int left = ((i % 4)) * 8 + right;
_cryptKey3[i] = (byte)(_cryptKey1[i] ^ tmpkey1 left);
_cryptKey4[i] = (byte)(_cryptKey2[i] ^ tmpkey2 left);
}
Decrypt2 = true;
}
public void GenerateKeys2(byte[] InKey1, byte[] InKey2)
{
byte[] addKey1 = new byte[4];
byte[] addKey2 = new byte[4];
byte[] addResult = new byte[4];
//addKey1.i = 0;
//addKey2.i = 0;
byte[] tempKey = new byte[4];
long LMULer;
// InKey1[0] = 0x20;
// InKey1[1] = 0x5c;
// InKey1[2] = 0x48;
// InKey1[3] = 0xf4;
// InKey2[0] = 0x00;
// InKey2[1] = 0x44;
// InKey2[2] = 0xa6;
// InKey2[3] = 0x2e;
//if (Key3) delete [] Key3;
//if (Key4) delete [] Key4;
_cryptKey3 = new byte[256];
_cryptKey4 = new byte[256];
for (int x = 0; x < 4; x++)
{
addKey1[x] = InKey1[3 - x];
addKey2[x] = InKey2[3 - x];
}
//cout << "Key1: " << addKey1.i << endl;
//cout << "Key2: " << addKey2.i << endl;
uint Adder1;
uint Adder2;
uint Adder3;
Adder1 = (uint)((addKey1[3] << 24) | (addKey1[2] << 16) | (addKey1[1] << 8) | (addKey1[0]));
Adder2 = (uint)((addKey2[3] << 24) | (addKey2[2] << 16) | (addKey2[1] 8) & 0xff);
addResult[2] = (byte)((Adder3 >> 16) & 0xff);
addResult[3] = (byte)((Adder3 >> 24) & 0xff);
for (int b = 3; b >= 0; b--)
{
// printf("%.2x ", addResult.c[b]);
tempKey[3 - b] = addResult[b];
}
tempKey[2] = (byte)(tempKey[2] ^ (byte)0x43);
tempKey[3] = (byte)(tempKey[3] ^ (byte)0x21);
for (int b = 0; b < 4; b++)
{
tempKey[b] = (byte)(tempKey[b] ^ InKey1[b]);
}
//Build the 3rd Key
for (int b = 0; b < 256; b++)
{
_cryptKey3[b] = (byte)(tempKey[3 - (b % 4)] ^ _cryptKey1[b]);
}
for (int x = 0; x < 4; x++)
{
addResult[x] = tempKey[3 - x];
}
Adder3 = (uint)((addResult[3] << 24) | (addResult[2] << 16) | (addResult[1] << 8) | (addResult[0]));
LMULer = Adder3 * Adder3;
LMULer = LMULer 32;
Adder3 = Convert.ToUInt32(LMULer & 0xffffffff);
addResult[0] = (byte)(Adder3 & 0xff);
addResult[1] = (byte)((Adder3 >> 8) & 0xff);
addResult[2] = (byte)((Adder3 >> 16) & 0xff);
addResult[3] = (byte)((Adder3 >> 24) & 0xff);
for (int b = 3; b >= 0; b--)
{
tempKey[3 - b] = addResult[b];
}
//Build the 4th Key
for (int b = 0; b < 256; b++)
{
_cryptKey4[b] = Convert.ToByte(tempKey[3 - (b % 4)] ^ _cryptKey2[b]);
}
Decrypt2 = true;
//cout << "Int representation: " << charadd.i << endl;
}
}
}
Platform: |
Size: 3638778 |
Author: andesion@vip.qq.com |
Hits:
Description: LPC2368按键点灯,按key1点亮led1,按key2点亮led2,按key3点亮led3,按key4点亮led4
Platform: |
Size: 740 |
Author: sea_garfield |
Hits:
Description: 1. beep -- PWM测试
为 ADS1.2 下编译的项目, 在sdt2.51的ADW里调试,该程序运行后在57600的超级终端里按PC机键盘的“+”“-” 按键,可以听到BUZZ增大减小的声音。
2. key -- 按键测试
为 SDT2.51 下编译的项目, 在sdt2.51的ADW里调试,该程序运行后按FS44B0X上的按键key1 key2 key3 key4 相应的发光二极管亮
3 keyint -- 按键中断测试
该项目在SDT2.51下编译调试。主程序是while空循环,中断服务程序对应四个按键做相应的处理,key1 按键点亮D1灯,并在串口打印信息,因为没有加按键去抖动程序,所以,一次按键,产生几次中断。
-1. Beep-- PWM ADS1.2 testing for the project under the Build, in the ADW sdt2.51 Lane debugging, after running the 57,600 in the Super Terminal Lane by PC keyboard "" "-" buttons, Buzz can be increased to reduce heard voices. 2. Key-- SDT2.51 key test for the project under the Build, in the ADW sdt2.51 Lane debugging, after running the program on the button FS44B0X key1 key2 key3 key4 corresponding LED top-three keyint-- interrupted test button in the project under the Build SDT2.51 debugging. While space is the main program cycle, interrupt service routine correspondence four keys handled accordingly. key1 D1 lights lit keys, and Serial Print information, because no buttons to increase jitter, and therefore, a button. several have interrupted.
Platform: |
Size: 506880 |
Author: 张淼林 |
Hits:
Description: 配合315M RF接收模块工作,RF模块收到遥控数据后会通过UART向PC机发送Key1,Key2,Key3,Key4按键信息
RF Remote Control监控UART数据接收,当接收到Key1后发送虚拟按键Ctrl+Right,收到Key2后发送虚拟按键Ctrl+Left,用于控制Winamp等播放工具执行上一首,下一首等操作
虚拟按键使用了winio.vxd,驱动级模拟-315M RF receiver module with the work, RF remote control module receive data through the UART to the PC will send Key1, Key2, Key3, Key4 key information RF Remote Control Monitoring UART data reception, when receiving Key1 send virtual keys Ctrl Right, received key2 send virtual keys Ctrl Left, used to control Winamp player, such as a tool for the implementation of the next operation of the first virtual button, such as the use of winio.vxd, drive-level simulation
Platform: |
Size: 73728 |
Author: michael |
Hits:
Description: 单片机数字钟-LCD1602显示 带四键时钟 按键对应关系:
key1 —— 减
key2 —— 加
key3 —— 设定
key4 —— 确定 -Single-chip digital clock-LCD1602 display with four buttons corresponding to the relationship between the clock key: key1- by key2- plus key3- set key4- determine
Platform: |
Size: 50176 |
Author: qing |
Hits:
Description: set(key6)
left(key5)
right(key4)
up(key3)
down(key2)
OK(key1)
功能一:时钟
时钟计时;
按下set(一次)键即可调时间,此时时钟计时停止,按left,right左右移动点,移动到需调的的数码管,
按up,down进行数字的调节,按OK键保存退出。
功能二:整点报时和闹钟
当时钟走到整时时,报时滴滴响四次;
按set(二次)键进入调节闹钟,此时时钟继续走动,按left,right左右移动点,移动到需调的的数码管,
按up,down进行数字的调节,按OK键保存退出,当时钟走到定时的时间时,蜂鸣器响。
功能三:日历
由于数码管有限 ,就做了润年的日历,刚好今年也是,左边四个显示月份和日,左数第五个显分隔符“—”,
最后一个显示星期几,时钟满二十四小时,日历随之走动;
按下set(三次)键即可调日历,按left,right左右移动点,移动到需调的的数码管,
按up,down进行数字的调节,按OK键保存退出。-err
Platform: |
Size: 36864 |
Author: zwy |
Hits:
Description: 矩阵键盘和LCD1602显示 按单个键数字将显示1602上-LCD1602 matrix keyboard and display by a single button on the 1602 figures will show
Platform: |
Size: 135168 |
Author: |
Hits:
Description: 本文件是C8051F040键盘及DA输出测试程序;DA输出端子(J10)可输出2路DA(DAC0,DAC1),四路按键(KEY1--KEY4,须设置跳线JP5),测试时按下KEY1--KEY4,分别对应DAC0,DAC1输出0.5V,1V,1.5V,2V。
-The present document is a C8051F040 keyboard and DA output test procedures DA output terminal (J10) can output 2-way DA (DAC0, DAC1), four buttons (KEY1- KEY4, shall be provided jumpers JP5), test press KEY1--KEY4, corresponding to DAC0, DAC1 output 0.5V, 1V, 1.5V, 2V.
Platform: |
Size: 28672 |
Author: 王珍宁 |
Hits:
Description: 此为4*4扩展键盘程序,用的是atmega128开发板-This is the expansion of 4* 4 keyboard procedures are used ATmega128 development board
Platform: |
Size: 13312 |
Author: 杨茂 |
Hits:
Description: 这个程序扫描KEY1—KEY4。有按键按下后,返回相应按键的字符:‘1’,‘2’,
‘3’,‘4’,并在LCD上显示出来(注:J18要短接,给LCD 供电), 使用外部
22.1184MHz晶振-This procedure scans KEY1-KEY4. There after press the button, the button to return to the corresponding characters:' 1 ' ,' 2' ,' 3 ' ,' 4' , and displayed in the LCD (Note: J18 should be shorted to the LCD power supply), the use of external Crystal 22.1184MHz
Platform: |
Size: 20480 |
Author: sunjun |
Hits:
Description: 系统循环计数,按键控制 KEY1 停止 KEY2
再动 KEY3 停止 KEY4 清零-System cycle count control KEY1 button again to stop moving KEY3 stop KEY2 Clear KEY4
Platform: |
Size: 1024 |
Author: cjg |
Hits:
Description:
(1) ADC&UART:
摘 要:本文件是AD采样及串口测试程序;AD输入端子(J7)可输入8路AD(AIN0--AIN7),另有1路可测量片内温度,9路采样值都通过串口(使用串口必须将JP3的1,2及3,4脚短路)发送出去,在串口调试助手上看观察其值。8路AD输入中AIN7可通过跳以器(JP1)“ADC”(1,2脚短接)与板上电位器相连,通过手动调VR1可以观察到电压值的变化。
(2) KEY&DAC:
摘 要:本文件是键盘及DA输出测试程序;DA输出端子(J9)可输出2路DA(DAC0,DAC1),四路按键(KEY1--KEY4,须设置跳线JP4),测试时按下KEY1--KEY4,分别对应DAC0,DAC1输出0.5V,1V,1.5V,2V。-(1) ADC & UART: Abstract: This document is a serial AD sampling and testing procedures AD input (J7) to enter the 8 AD (AIN0- AIN7), and another 1-chip temperature measurable way, the way sampling the value of 9 through the serial port (using the serial port must be the JP3 short legs 1,2 and 3,4) sent in the serial debugging point of view to observe the value of assistants. 8-channel AD input can jump to AIN7 browser (JP1) " ADC" (1,2 feet shorter then) connected with the on-board potentiometer, VR1 can be adjusted manually through the observed changes in voltage. (2) KEY & DAC: Abstract: This document is the output DA keyboard and test procedures DA Output (J9) to output 2-way DA (DAC0, DAC1), four-way key (KEY1- KEY4, shall be provided jumper JP4), test press KEY1- KEY4, corresponding to DAC0, DAC1 output 0.5V, 1V, 1.5V, 2V.
Platform: |
Size: 50176 |
Author: hyy |
Hits:
Description: 这个程序扫描:KEY1...KEY4,返回按相应的按键字符: 1 , 2 , 3 , 4
// 并在LCD上显示出来(注:J18要短接给LCD供电).-key1,key2,key3
Platform: |
Size: 1024 |
Author: stone7758991 |
Hits:
Description: 本文件是键盘及DA输出测试程序;DA输出端子(J9)可输出2路DA(DAC0,DAC1),四路按键(KEY1--KEY4,须设置跳线JP4),测试时按下KEY1--KEY4,分别对应DAC0,DAC1输出0.5V,1V,1.5V,2V。-This document is the keyboard and the DA output test procedures DA output terminal (J9) can output 2-way DA (DAC0, DAC1), four buttons (KEY1- KEY4, to set the jumper JP4), the test press KEY1-- KEY4, corresponding to DAC0, DAC1 output 0.5V, 1V, 1.5V, 2V.
Platform: |
Size: 6144 |
Author: lijun |
Hits:
Description: 430 独立按键程序 能真确运行 在板子上测试成功-430 individual keys program can actually test a successful run on the board
Platform: |
Size: 17408 |
Author: hongyuntao |
Hits:
Description: key4*4 键盘扫描FPFA代码 实现按键功能-key4* 4 keyboard scan code key functions FPFA
Platform: |
Size: 1413120 |
Author: yuwei |
Hits:
Description: key4位时调试程序,淘宝买的接线图位置时相反的(Key4 bit debugger. The location of wiring diagram Taobao bought is the opposite.)
Platform: |
Size: 12288 |
Author: wu111221 |
Hits: