I2C in new lego hubs [STM32]
Posted: Mon Aug 02, 2021 11:04 am
Hi
While I have been using micropython in various platforms (ESP32, ESP8266, STM32 with Lego new hubs), I'm new in trying to compile my own version of micropython or even some specific libraries.
Today I was thinking about I2C implementation I'm missing in lego hubs (Spike or Mindstorms 51515). I miss to be able to connect directly a i2c device directly to the hub, as it should be technically possible.
While it seems that the adequate class was part of the Lego port a few monthes ago: https://www.facebook.com/groups/SPIKEco ... 8433527719
now, there is now i2c nor Pin class in current lego implementation (MicroPython v1.12-1529-gee25066ba on 2021-04-26; LEGO Technic Large Hub with STM32F413xx).
I thought I could try to compile the original i2c library from micropython into a .mpy module, but crosscompilation from C to mpy seems to be unsupported on STM platforms.
So may be someone has developed something to solve the problem ?
Thanks
Jean-David
While I have been using micropython in various platforms (ESP32, ESP8266, STM32 with Lego new hubs), I'm new in trying to compile my own version of micropython or even some specific libraries.
Today I was thinking about I2C implementation I'm missing in lego hubs (Spike or Mindstorms 51515). I miss to be able to connect directly a i2c device directly to the hub, as it should be technically possible.
While it seems that the adequate class was part of the Lego port a few monthes ago: https://www.facebook.com/groups/SPIKEco ... 8433527719
now, there is now i2c nor Pin class in current lego implementation (MicroPython v1.12-1529-gee25066ba on 2021-04-26; LEGO Technic Large Hub with STM32F413xx).
I thought I could try to compile the original i2c library from micropython into a .mpy module, but crosscompilation from C to mpy seems to be unsupported on STM platforms.
So may be someone has developed something to solve the problem ?
Thanks
Jean-David