Open gbraad opened 4 years ago
Actually, in the code it says:
uint8_t newAddress = usiTwiReceiveByte();
// 1st bit is reserved for protocol.
// Several addresses in the 7-bit range are reserved
// https://www.nxp.com/docs/en/user-guide/UM10204.pdf
if(newAddress >= 8 && newAddress <= 123) {
eeprom_write_byte((uint8_t*)0x01, newAddress);
}
which means that a limited set of address is allowed. In code I allow this check to be performed in the device side, by requesting the new address and determine a boolean state if succesful or not:
0x20
1
; eg. value0x30
0x30