Skip to content

Instantly share code, notes, and snippets.

@IOT-123
Last active December 30, 2017 07:02
Show Gist options
  • Select an option

  • Save IOT-123/87226857cc74d1528030b7fe14b63380 to your computer and use it in GitHub Desktop.

Select an option

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).
#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