wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
384 stars 40 forks source link

SSD1306 broken on micropython 1.20+ #135

Closed treysis closed 9 months ago

treysis commented 9 months ago

Trying to interface the board-ssd1306 component via I2C gives the following error:

image

Setting micropython environment in diagram.json to below 1.20 works, e.g. micropython-20220618-v1.19.1. But since 1.20 it's broken (same problem with 1.21).

It does work with ESP32, though. So I suspect it is a problem with the Pico emulation.

urish commented 9 months ago

Thanks for reporting! Can you please share a link to a demo project that demonstrates the issue?

treysis commented 9 months ago

Sure, see this for example: https://wokwi.com/projects/381549021386487809

urish commented 9 months ago

Thanks, issue reproduced. Working on a solution.

treysis commented 9 months ago

For reference, here is a (generic?) ESP32 demo which works with 1.20+: https://wokwi.com/projects/305568836183130690

urish commented 9 months ago

Thanks! Fix is up, can you please check?

treysis commented 9 months ago

Wow, that was lightning fast! Yes, it's working now. 👍 Thanks a lot!