I built my first Micropython firmware because I need to freeze some bytecode in order to reduce memory usage.
I don't have any problem building or flashing the firmware.
Everything seems to work fine until I try to create an I2C object. This is the error I got:
Code: Select all
>>> a = machine.I2C(machine.Pin(5), machine.Pin(4))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid I2C peripheral
I tried multiple times to erased the local folder were I have the micropython repository and cloned the repository from scratch (git clone https://github.com/micropython/micropython ; git submodule update --init; make axtls; make -C mpy-cross).
However, I can't make I2C work with the firmware that I compiled. With the precompiled firmware everything is working fine.
This is the version of the esp sdk (as read in the readme.txt):
ESP8266_NONOS_SDK_V2.0.0_16_07_19
Can someone give me an hint why I2C is not working while the rest seems to be working fine?
Thank you!