Working Makeblock IR example for mBot
#include <MeMCore.h> | |
MeIR ir; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
if (ir.decode()) | |
{ | |
uint32_t value = ir.value; | |
Serial.print("0x"); | |
Serial.println(value,HEX); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment