Comments on: Programming Raspberry Pi Pico with VS Code and MicroPython https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 30 Jun 2025 09:13:59 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-1062699 Mon, 30 Jun 2025 09:13:59 +0000 https://randomnerdtutorials.com/?p=134681#comment-1062699 In reply to alfred.

Great!

]]>
By: alfred https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-1062562 Mon, 30 Jun 2025 02:23:28 +0000 https://randomnerdtutorials.com/?p=134681#comment-1062562 hi this was helpful thanks

]]>
By: saad ahmed https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-886447 Sat, 27 Jan 2024 09:23:32 +0000 https://randomnerdtutorials.com/?p=134681#comment-886447 hi i want to get the existing files which is inside the pico in vscode

]]>
By: Judson Belmont https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-874482 Mon, 27 Nov 2023 05:55:32 +0000 https://randomnerdtutorials.com/?p=134681#comment-874482 In reply to JB.

Sara, thank you for this excellent lesson. Can you explain how to add libraries such as BME280? Do we 1. download a copy from GitHub, 2. make a folder named “lib” , 3. move the BME280 library into it 4. after moving the folder onto the pico, 5. then lastly adding the firmware? Again, many thanks.

]]>
By: Judson Belmont https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-874481 Mon, 27 Nov 2023 05:52:40 +0000 https://randomnerdtutorials.com/?p=134681#comment-874481 Sara, thank you for this excellent lesson. Can you explain how to add libraries such as BME280? Do we 1. download a copy from GitHub, 2. make a folder named “lib” , 3. move the BME280 library into it 4. after moving the folder onto the pico, 5. then lastly adding the firmware? Again, many thanks.

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-874206 Sat, 25 Nov 2023 15:17:17 +0000 https://randomnerdtutorials.com/?p=134681#comment-874206 In reply to Ian.

Hi.
Unfortunately, I haven’t tried the VS Code debugging feature.
Sometimes, the code will be underlined, but if you upload it and ignore the red squiggles, it will upload without any problem.
Regards,
Sara

]]>
By: Ian https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-873520 Wed, 22 Nov 2023 03:00:50 +0000 https://randomnerdtutorials.com/?p=134681#comment-873520 Hi Sara,
I’m hoping you can answer a couple of questions for me.
I’m using Micropython to program a Pi Pico which has a small PIO program in it. It works fine, but when I edit it in VS Code every line of the PIO program is flagged as an error. Also, if I try to use debug a large red box is displayed saying I can’t import machine as it doesn’t exist. So it seems the debugger is not using Micropython, but something else.
I have MicroPico installed, and also PIO ASM syntax highlighting, just in case that did anything, but I still can’t get the debugger to work.
Is there a way to debug micropython in VS Code?
Thanks, Ian
PS if you are wondering why I’m not using Thonny, it’s because debugging is not supported for micropython in Thonny.

]]>
By: Dave https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-866484 Thu, 19 Oct 2023 07:15:08 +0000 https://randomnerdtutorials.com/?p=134681#comment-866484 Did you install MicoPico?

]]>
By: robert https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-866339 Wed, 18 Oct 2023 14:06:21 +0000 https://randomnerdtutorials.com/?p=134681#comment-866339 Hi – I’ve been using this for a while now. It works – but any library that is micropython specific gets the yellow underline treatment from pylance.

Also because it can’t find the micropython library intellicode can’t give suggestions as I code.

I’m a beginner in both vscode and micropython so how to fix this is throwing me.
Any clues?

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-vs-code-micropython/#comment-865688 Sat, 14 Oct 2023 15:34:02 +0000 https://randomnerdtutorials.com/?p=134681#comment-865688 In reply to JB.

Thanks 😀

]]>