Additional details for I2C_SLAVE_ADDRESS

This commit is contained in:
Scott Lahteine
2016-08-12 00:51:25 -07:00
parent 7427290d3a
commit d63b8e2b2b
22 changed files with 36 additions and 20 deletions

View File

@ -43,6 +43,11 @@ void TWIBus::reset() {
}
void TWIBus::address(const uint8_t adr) {
if (adr < 8 || adr > 127) {
SERIAL_ECHO_START;
SERIAL_ECHOLNPGM("Bad I2C address (8-127)");
}
this->addr = adr;
#if ENABLED(DEBUG_TWIBUS)