Keyestudio Ks0428 Manual page 199

Table of Contents

Advertisement

www.keyestudio.com
{
ir_rec=results.value;
String type="UNKNOWN";
String typelist[14]={"UNKNOWN", "NEC", "SONY", "RC5", "RC6",
"DISH", "SHARP", "PANASONIC", "JVC", "SANYO", "MITSUBISHI",
"SAMSUNG", "LG", "WHYNTER"};
if(results.decode_type>=1&&results.decode_type<=13){
type=typelist[results.decode_type];
}
Serial.print("IR TYPE:"+type+" ");
Serial.println(ir_rec,HEX);
irrecv.resume();
}
if (ir_rec == 0xFF629D) //Go forward
{
Car_front();
matrix_display(front); //Display front image
}
if (ir_rec == 0xFFA857) //Robot car goes back
{
Car_back();
matrix_display(front); //Go back
199

Advertisement

Table of Contents
loading

Table of Contents