Hi All,
I currently have a raspberry pi pico 2H and a waveshare 2.8” restouch OLED display. I have a working script that has graphics, text, and two buttons mapped to touchscreen for a simple start/stop timer. But have two problems I’m struggling with and I don’t know if they’re related:
- My main script works fine in Thonny and VS Code. Although, I’ve noticed that when I plug it into my laptop to code, my own script doesn’t actually run through Thonny/VSC without first running one of the demo scripts from waveshare site. It’s weird, it’s as though the demo script (or rather a script that I did not write) wakes up the pico and then I can use it as normal running mine. Ie. I open Thonny → open my script → click run and nothing happens → open demo code → click run and it works → click run on my script again and now it works.
- I can’t get my script to start on powerup. I’ve done the bootsel → save as main.py on pico (also tried boot.py) → unplug and plug into PC or wall socket USB and nothing. Have UF2 file, tried redownloading and doing it again. Still nothing.
Obviously pointing to an issue with my code, and I’m sure I’m missing something but I am finding the first problem kind of strange since my script is still running, it just needs a weird wakeup first.