Welcome![Sign In][Sign Up]
Location:
Search - key2

Search list

[Other resourcekey2

Description: 用单片机的C语言编的键盘递增递减的C程序的源代码(按一下键,对应的键值增或减一),在很多领域用到此思想,如空调调温等,可供单片机开发工程师参考。-the MCU series of the C language keyboard incremental decrease in C program's source code (by pushing a button, the corresponding increase or decrease of the pair a), used in many areas here thinking, such as air-conditioning thermostat, MCU development engineers for reference.
Platform: | Size: 2137 | Author: lsd | Hits:

[Other resourceS3C44B0X例子程序2

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:

[Other resourceEagle_Lookaround

Description: 用C编写基于凌阳SPCE061A芯片的图象识别模块可实现(1)获得数据并处理。(2)控制按扭KEY1,播放物体的形状和颜色。(3)分辩的颜色:红色、绿色、蓝色、黄色。(4)分辩的形状:正方形、长方形、圆形、三角形。(5)控制按键KEY2,小车跟着红色的物体移动,别的颜色不做跟踪。-prepared based on the C Sunplus SPCE061A chip image recognition module can be realized (1) access to data and handled. (2) the control buttons KEY1 broadcast the shape of the object and color. (3) differentiate colors : red, green, blue and yellow. (4) distinguish shapes : square, rectangular, circular, triangular. (5) KEY2 control buttons, a red car with mobile objects, not another color tracking.
Platform: | Size: 23608 | Author: 三石 | Hits:

[Windows DevelopSpeechClock11654

Description: 结合\"61板\"的三个按键完成带有语音播报功能的电子钟: // 1、KEY1--按一下播放年、月、日,再按一下播放时、分 (I/O口A0) // 连续按3s,则进入调整状态 调整状态下调整内容的切换 // 2、KEY2--年、月、日、时、分的增加(I/O口A1) // 3、KEY3--年、月、日、时、分的减少(I/O口A2)-combination "61 boards" to complete th ree key functions with voice broadcast electronic bell : / / 1, KEY1 -- by about players, month, day and broadcast press once, - (I / O A0) / / by consecutive 3s, then a state of adjustment adjustment adjustment under the content switching / / 2. KEY2 -- the year, month, day and hour of the increase in hours (I / O A1) / / 3, KEY3 --, on that day, when the reduced hours (I / O A2)
Platform: | Size: 138155 | Author: jone Pote | Hits:

[Embeded-SCM Developlowtest1

Description: 功能:由KEY1键使系统进入空闲状态,由定时器0中断唤醒; 由KEY2键使系统进入掉电状态,由KEY3键盘中断唤醒-functions : bonding KEY1 by the system to enter idle state, the timer interruption awaken 0; Key KEY2 by allowing the system to enter the state of restart from the keyboard interrupt awaken KEY3
Platform: | Size: 1322 | Author: allen | Hits:

[Other resourcedvr_flash

Description: 功能描述:凌阳A2000语音播放方式实现语音录放,语音存储空间使用SPCE061A内置的32K的FLASH空间。 KEY1:语音录制按键,按下该键,开始录音。 KEY2:录音停止按键,按下该键,录音停止。 KEY3:录音播放按键,按下该键,播放录音。
Platform: | Size: 445807 | Author: 增两 | Hits:

[Other resource61_SpeechClock

Description: // 工程名称: 61_SpeechClock // 功能描述: 61板程序示例--具有语音播报功能的电子钟 // 使用61板上的三个按键控制报时和时间调整: // Key1 - 按一下播报年、月、日,再按一下播报时、分 // 长按Key1键达到1.5秒,则进入日期时间调整模式 // Key2 - 在调整模式下,使年、月、日、时、分、秒增加 // Key3 - 在调整模式下,使年、月、日、时、分、秒减小 // 涉及的库: CMacro1016.lib // SacmV26e.lib // 组成文件: main.c, Sound.c, Clock.c, Clock_Speech.c, Clock_Adjust.c // Key.asm, hardware.asm, ISR.asm // A2000.h, Sound.h, Clock.h, Clock_Speech.h, Clock_Adjust.h, Key.h, SPCE061A.h, // 硬件连接: 61板自带的三个按键已经连接在IOA0~IOA2上 // 维护记录: 2006-8-30 v1.0
Platform: | Size: 112666 | Author: DK | Hits:

[Windows DevelopRF_Remote_Control

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:

[Other resourceaa447fd0-4f86-44ca-a8c9-d13bb68945b4

Description: 单片机数字钟-LCD1602显示 带四键时钟 按键对应关系: key1 —— 减 key2 —— 加 key3 —— 设定 key4 —— 确定
Platform: | Size: 50004 | Author: qing | Hits:

[OtherAVL树实现

Description: 纯C实现的AVL树,Demo是MFC的。非递归的遍历,完全支持添加、删除和搜索节点。设计灵活,容易扩展。以下是API struct tagAvlTree; typedef struct tagAvlTree AvlTree; struct tagAvlNode; typedef struct tagAvlNode AvlNode; struct tagAvlNode { AvlNode *left; AvlNode *right; int32_t height; uint32_t key; void *user; bool_t full; }; #define AVL_MODE_REPLACE 1 #define AVL_MODE_PERFECT 2 #define AVL_ERROR_MEMORY -1 #define AVL_ERROR_CONFLICT -2 struct tagAvlTree { void *user; AvlNode *root; uint32_t flags; bool_t (*dtor)(AvlNode *item); AvlNode* (*ctor)(uint32_t key, void *user); int32_t (*compare)(void *key1, void *key2); }; AvlNode* AvlTraversePrior(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//先序遍历 AvlNode* AvlTraverseMiddle(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//中序遍历 AvlNode* AvlTraversePost(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//后序遍历 AvlNode* AvlTraverseReversePrior(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//先序遍历,先右后左 AvlNode* AvlTraverseReverseMiddle(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//中序遍历,先右后左 AvlNode* AvlTraverseReversePost(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//后序遍历,先右后左 AvlNode* AvlTraverseWide(AvlTree *tree, AvlNode *item, int32_t (*f)(AvlTree *tree, AvlNode *item, void *user), void *user);//广度优先遍历 void AvlCreate(AvlTree *tree); void AvlDestroy(AvlTree *tree); AvlNode* AvlMin(AvlNode *root); AvlNode* AvlMax(AvlNode *root); AvlNode* AvlPrev(AvlTree *tree, AvlNode *item); AvlNode* AvlNext(AvlTree *tree, AvlNode *item); uint32_t AvlDepth(AvlTree *tree, AvlNode *item); AvlNode* AvlParent(AvlTree *tree, AvlNode *item, uint32_t nth); AvlNode* AvlCheckBanlance(AvlTree *tree, AvlNode *item); AvlNode* AvlRemove(AvlTree *tree, uint32_t key, bool_t freeit); AvlNode* AvlInsert(AvlTree *tree, uint32_t key, void *user); AvlNode* AvlReplace(AvlTree *tree, uint32_t key, void *user); AvlNode* AvlIndex(AvlTree *tree, int32_t index); void AvlSetMode(AvlTree *tree, uint32_t mode); void AvlClearMode(AvlTree *tree, uint32_t mode); void AvlInvertMode(AvlTree *tree, uint32_t mode); uint32_t AvlIsInMode(AvlTree *tree, uint32_t mode); bool_t AvlAdd(AvlTree *tree, AvlNode *item); bool_t AvlClone(AvlTree *tree, AvlNode *item, AvlTree* copy); AvlNode* AvlNear(AvlTree *tree, uint32_t key, int32_t (*compare)(void *key1, void *key2)); //按key查找节点或最临近点 AvlNode* AvlSearch(AvlTree *tree, uint32_t key, int32_t (*compare)(void *key1, void *key2)); //按key查找节点 void* AvlLookup(AvlTree *tree, uint32_t key, int32_t (*compare)(void *key1, void *key2)); //按key查找节点,返回数据
Platform: | Size: 24543 | Author: doitfreely | Hits:

[Windows Develop征服4.0马端源码

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:

[SourceCode61单片机语音指令扩展程序

Description: 实现61单片机五指令扩展为十指令,并利用其控制电机,本人制作了带增氧功能的鱼类喂食器,读者可自行进行改造 //======================================================== // 工程名称: Feeding_Demo9 // 功能描述: 实现装置的声控增氧和喂食操作 // 涉及的库: CMacro1016.lib // bsrv222SDL.lib // sacmv26e.lib // 组成文件: main.c // Flash.asm, hardware.asm,ISR.asm // hardware.h,s480.h, hardware.inc // 硬件连接: IOA0-----KEY1 // IOA1-----KEY2 // IOA2-----KEY3 // IOB8-----慢增氧 // IOB9-----快增氧 // IOB10----慢喂食 // IOB11----快喂食
Platform: | Size: 16049 | Author: yuxuan_n | Hits:

[SourceCode键盘控制流水灯程序

Description: #include<reg51.h> #define uchar unsigned char #define uint unsigned int uchar k,flag1,flag2,flag3; sbit diocs=P2^5; sbit key1=P3^4; sbit key2=P3^5; sbit key3=P3^6; uchar code table1[]={ 0xfe,0xfd,0xfb,0xf7, 0xef,0xdf,0xbf,0x7f}; uchar code table2[]={ 0x7f,0xbf,0xdf,0xef, 0xf7,0xfd,0xfb,0xfe};
Platform: | Size: 24576 | Author: longtian635241 | Hits:

[SourceCodeLPC2368KEY

Description: LPC2368按键点灯,按key1点亮led1,按key2点亮led2,按key3点亮led3,按key4点亮led4
Platform: | Size: 740 | Author: sea_garfield | Hits:

[SCMkey2

Description: 用单片机的C语言编的键盘递增递减的C程序的源代码(按一下键,对应的键值增或减一),在很多领域用到此思想,如空调调温等,可供单片机开发工程师参考。-the MCU series of the C language keyboard incremental decrease in C program's source code (by pushing a button, the corresponding increase or decrease of the pair a), used in many areas here thinking, such as air-conditioning thermostat, MCU development engineers for reference.
Platform: | Size: 2048 | Author: lsd | Hits:

[ARM-PowerPC-ColdFire-MIPSS3C44B0X例子程序2

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:

[SCMEagle_Lookaround

Description: 用C编写基于凌阳SPCE061A芯片的图象识别模块可实现(1)获得数据并处理。(2)控制按扭KEY1,播放物体的形状和颜色。(3)分辩的颜色:红色、绿色、蓝色、黄色。(4)分辩的形状:正方形、长方形、圆形、三角形。(5)控制按键KEY2,小车跟着红色的物体移动,别的颜色不做跟踪。-prepared based on the C Sunplus SPCE061A chip image recognition module can be realized (1) access to data and handled. (2) the control buttons KEY1 broadcast the shape of the object and color. (3) differentiate colors : red, green, blue and yellow. (4) distinguish shapes : square, rectangular, circular, triangular. (5) KEY2 control buttons, a red car with mobile objects, not another color tracking.
Platform: | Size: 23552 | Author: 三石 | Hits:

[Otherkey2

Description: ARM7 LPC2368 键盘检测:按一下KEY1,L1灯亮,按一下KEY2,L2灯亮,按一下KEY3,L3灯亮,按一下KEY3,L4灯亮.-ARM7 LPC2368 keyboard detection: Click the KEY1, L1 lights, click KEY2, L2 lights, click KEY3, L3 lights, click KEY3, L4 lights.
Platform: | Size: 1024 | Author: jiangxz | Hits:

[VHDL-FPGA-Verilogexample6

Description: 使用 key1 和 key2 来控制数据的加减,通过显示可以看出数据的变化。key1是控制数据加,key2 是控制数据减。可以从 0~9 显示。其中有按键消抖的方法-Key1 and key2 to control the use of the data increases or decreases can be seen by showing the data changes. key1 is to control the data increases, key2 is to control the data reduction. From 0 to 9 displayed. Which buttons eliminate shaking method
Platform: | Size: 27648 | Author: panda | Hits:

[assembly languageKey2

Description: 1、Button:学习方式采用特殊的按键进入学习模式; 2、Key2:同时按住遥控器(1+2)2个键3秒学习;-1、Button:学习方式采用特殊的按键进入学习模式; 2、Key2:同时按住遥控器(1+2)2个键3秒学习;
Platform: | Size: 17408 | Author: ivan | Hits:
« 12 3 4 5 6 7 8 »

CodeBus www.codebus.net