I have problems with a ESP8266, actually a Wemos D1 Mini, with verssion 1.19.1 of the MicroPython firmware.
If I run the following to see what devices are on the I2C-bus the ESP8266 reboots when reaching the i2c.scan()-line.
Code: Select all
import machine
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
print('Scan i2c bus...')
devices = i2c.scan()
If I use the 1.18 firmware it works ok so I guess it may have something to do with the firmware.
Has something new been introduced in 1.19.1 that I have missed or is it a bug in the firmware?
Any help or insights appreciated.