-
I cant use any I/O method from I2C, it says that operation not permitted. Even thought my device is connected to i2c? I'm using the default i2c 0 pin (6 and 5) and my device (ssd1306) is clearly connected here. Reading from 0x3c results in error. Also trying to read all addresses but same results const i2c0 = board.i2c(0)
for (let i = 0; i <= 0xff; i++) {
try {
const res = i2c0.read(1, i)
console.log(`#${i} result:`, res)
} catch (e) {
console.log(`#${i} error:`, e)
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
strdsk
Jul 10, 2022
Replies: 2 comments 3 replies
-
Solved. The fault is on my part, it's the connection 🤦♂️. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
strdsk
-
I've got:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved. The fault is on my part, it's the connection 🤦♂️.