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

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

                     }
                     else if (results->decode_type == JVC) {
                                Serial.print("Decoded JVC: ");
                     }
                     Serial.print(results->value, HEX);
                     Serial.print(" (");
                     Serial.print(results->bits, DEC);

                     Serial.println(" bits)");
                     Serial.print("Raw (");
                     Serial.print(count, DEC);
                     Serial.print("): ");

                     for (int i = 0; i < count; i++) {

                                if ((i % 2) == 1) {
                                        Serial.print(results->rawbuf[i]   *   USECPERTICK,
                 DEC);
                                }
                                else {
                                        Serial.print(-(int)results->rawbuf[i]           *
                 USECPERTICK, DEC);
                                }

                                Serial.print(" ");
                     }
                     Serial.println("");
                 }

                 //

                 String decode_IRvalue(unsigned long irValue)
                 {
                     for (int i = 0; i < 21; i++)
                     {
                                if (irData[i].value == irValue)





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