We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee39818 commit 8052c97Copy full SHA for 8052c97
examples/AddressChanger/AddressChanger.ino
@@ -9,6 +9,10 @@ void setup() {
9
Wire1.begin();
10
Serial.begin(115200);
11
delay(1000);
12
+ if (new_address != 0 && (new_address < 8 || new_address > 0x77)) {
13
+ Serial.println("Address outside valid range");
14
+ while (1);
15
+ }
16
// Search for devices and wait for user confirmation
17
for (int i = 8; i < 128; i++) {
18
Wire1.beginTransmission(i);
0 commit comments