Further refinements of TWIBus

This commit is contained in:
Scott Lahteine
2016-08-13 18:06:10 -07:00
parent 38fa1b1939
commit 97e0aed304
3 changed files with 128 additions and 59 deletions

View File

@@ -842,12 +842,7 @@ void servo_init() {
}
void i2c_on_request() { // just send dummy data for now
static const char *msg = "Hello World!\n";
const char *adr = msg;
char c;
i2c.reset();
while (c = *adr++) i2c.addbyte(c);
i2c.send();
i2c.reply("Hello World!\n");
}
#endif