Page 189 - 최강 아두이노 스마트 자동차 로봇 키트
P. 189

{ "CH-", 0xFFA25D },
                     { "CH", 0xFF629D },

                     { "CH+", 0xFFE21D }
                 };


                 // Dumps out the decode_results structure.
                 // Call this after IRrecv::decode()
                 // void * to work around compiler issue

                 //void dump(void *v) {
                 //    decode_results *results = (decode_results *)v

                 void dump(decode_results *results) {
                     int count = results->rawlen;
                     if (results->decode_type == UNKNOWN) {

                                Serial.print("Unknown encoding: ");
                     }
                     else if (results->decode_type == NEC) {
                                Serial.print("Decoded NEC: ");
                     }
                     else if (results->decode_type == SONY) {
                                Serial.print("Decoded SONY: ");
                     }

                     else if (results->decode_type == RC5) {
                                Serial.print("Decoded RC5: ");
                     }
                     else if (results->decode_type == RC6) {
                                Serial.print("Decoded RC6: ");
                     }

                     else if (results->decode_type == PANASONIC) {
                                Serial.print("Decoded PANASONIC - Address: ");
                                Serial.print(results->panasonicAddress, HEX);
                                Serial.print(" Value: ");
                     }





                                                   188
   184   185   186   187   188   189   190   191   192   193   194