This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
int counter = 0; | |
void setup() | |
{ | |
Wire.begin(4); // join i2c bus with address #4 | |
Wire.onReceive(receiveEvent); // register event | |
// SerialUSB.begin(9600); // start serial for output | |
delay(1000); |