I’m trying to program my tiny fx w. I have it connected to my laptop and have flashed the firmware with examples library. It reboots and runs the demo code. But where should I be putting my code to program it? There is nothing in the docs on github that tells me how to actually get it to run my code. I can see the tiny fx w on my laptop as a usb drive but if I copy an example file onto it, the demo code still runs. So I’m guessing my code needs to be in a particular folder or have a certain name?
This should help.
Getting Started with Raspberry Pi Pico
main.py is what is run by default on boot up. Save your file as main.py and it will run on boot up. If your just tinkering with code, click stop, to stop the running main,py. Then just run your file from thonny.
Which interpreter did you use in thorny? The closest I can find in my version on Ubuntu is “MicroPython (RP2040)” but I’ve tried a few different ports and it doesn’t see the tiny fx w.
I’m getting this error message in the thonny shell:
Unable to connect to /dev/ttyS0: Could not configure port: (5, ‘Input/output error’)
Process ended with exit code 1.
Got it to detect it eventually problem was it was in the bootloader mode. Pressed boot so the demo code started running, pressed boot again to stop the program. Then it appeared in thonny as dev/tty/ACM0
Glad you sorted it out, I was out of the house for a bit and only just logged back in to see what was what on the forums.
For me Thonny is set to MicroPython(Raspberry Pi Pico) Thats on my Windows PC.
Yeah, the only time you put it in Boot Mode is when your going to flash it. I just press the RST Reset Button if its looked up, or I need it to start over.