Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

MicroPython • Re: i2c.scan() disappeared

$
0
0
Thanks, that helped.

This fixed it for me:

Code:

>>> from machine import I2C>>> i2c = I2C(id=0, scl=machine.Pin(1), sda=machine.Pin(0)) # GPIO pin numbers>>> i2c.scan()[87, 95, 104, 112]>>>

Statistics: Posted by JKJ — Thu Sep 05, 2024 5:49 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles