Skip to content

Instantly share code, notes, and snippets.

@jenschr
Created September 2, 2016 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenschr/c76c5d77245327d8975610822cbaf77b to your computer and use it in GitHub Desktop.
Save jenschr/c76c5d77245327d8975610822cbaf77b to your computer and use it in GitHub Desktop.
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