| 数据搜索系统,热门电子元器件搜索 |
|
DFR0274 数据表(PDF) 9 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0274 数据表(HTML) 9 Page - DFROBOT |
|
9 / 12 page ![]() //Convert bits to integer for(int i = 0 ; i < (FirstLastBit) ; i++) { if(bits[i] == 1) { result += seed; } seed *= 2; } if (output_verify) { Serial.print("Remote "); Serial.print(result); Serial.println(" verification code"); } if (remote_verify != result) {delay (60); get_ir_key();} //verify first group of bits. delay for data stream to end, then try again. } /* convert an array of binary values to a single base-10 integer */ int bits_to_int(int bits[]) { int result = 0; int seed = 1; //Convert bits to integer for(int i = (IR_BIT_LENGTH-FirstLastBit) ; i < IR_BIT_LENGTH ; i++) { if(bits[i] == 1) { result += seed; } seed *= 2; } return result; } /* respond to specific remote-control keys with different behaviors */ void do_response(int key) { if (output_key) { Serial.print("Key "); Serial.println(key); } |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |