diff options
Diffstat (limited to 'arduino/main.cpp')
-rw-r--r-- | arduino/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arduino/main.cpp b/arduino/main.cpp new file mode 100644 index 0000000..e25a2bd --- /dev/null +++ b/arduino/main.cpp @@ -0,0 +1,14 @@ +#include <Arduino.h> +#include <Wire.h> + +void recv() { + Wire.write("foo"); +} + +void setup() { + Wire.begin(0x22); + Wire.onRequest(recv); +} + +void loop() { } + |