Additional details for I2C_SLAVE_ADDRESS
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user