| Electronic Components Datasheet Search |
|
DFR0274 Datasheet(PDF) 9 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0274 Datasheet(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); } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |