Last active
December 30, 2017 07:02
-
-
Save IOT-123/87226857cc74d1528030b7fe14b63380 to your computer and use it in GitHub Desktop.
The bare minimim needed to pat the dog to stop a reset. If the MCU does not do its job it is bitten (reset).
This file contains hidden or 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> | |
| void setup() { | |
| Wire.begin(); // join i2c bus (address optional for master) | |
| } | |
| void loop() { | |
| Wire.beginTransmission(8); // transmit to device #8 | |
| Wire.write('P'); // sends a char | |
| Wire.write(0); // sends one byte | |
| Wire.endTransmission(); | |
| delay(10000); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment