We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5385922 commit 2e36265Copy full SHA for 2e36265
java/libraries/io/src/processing/io/I2C.java
@@ -92,7 +92,8 @@ protected void finalize() throws Throwable {
92
* @see endTransmission
93
*/
94
public void beginTransmission(int slave) {
95
- if (127 < slave) {
+ // addresses 120 (0x78) to 127 are additionally reserved
96
+ if (0x78 <= slave) {
97
System.err.println("beginTransmission expects a 7 bit address, try shifting one bit to the right");
98
throw new IllegalArgumentException("Illegal address");
99
}
0 commit comments