Skip to content

Instantly share code, notes, and snippets.

@imp-guru
Created July 29, 2014 13:01
Show Gist options
  • Save imp-guru/39907ed147ce90058f50 to your computer and use it in GitHub Desktop.
Save imp-guru/39907ed147ce90058f50 to your computer and use it in GitHub Desktop.
Define constants for Electric Imp
// Integer constants
const ACTIVE = 0;
const IDLE = 1;
// Hex constants
const READ = 0x80;
const WRITE = 0x00;
const BURST = 0x40;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment