View mine.ino
#include "pitches.h" | |
const int pinButton = 2; | |
const int pinSpeaker = 4; | |
const int pinLED[] = {3, 5, 6, 9, 10, 11}; | |
boolean running = false; | |
volatile int mode = 0; | |
volatile unsigned long button_pressed = 0; |
View i2cbridge.ino
#include <Wire.h> | |
char inputString[200]; | |
uint8_t ipos = 0; | |
boolean stringComplete = false; | |
void setup() { | |
Serial.begin(9600); | |
Wire.begin(); | |
ipos = 0; |