Search found 1 match
- Sun Oct 24, 2021 7:19 pm
- Forum: Other Boards
- Topic: NUCLEO-L476RG - using I2C
- Replies: 1
- Views: 4819
NUCLEO-L476RG - using I2C
from machine import Pin led=pyb.LED(1) i2c=pyb.I2C(1) i2c=machine.SoftI2C(scl=pyb.Pin('PB8'),sda=pyb.Pin('PB9'),freq=100000) print(i2c.scan()) while True: led.on() pyb.delay(100) led.off() pyb.delay(100) I am trying to run the above program. I am not getting any error. But print (i2c.scan()) is prin...