Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Visual Studio Code with the Zumo 2040 #1

Open
jcocovich opened this issue Nov 29, 2023 · 1 comment
Open

How to use Visual Studio Code with the Zumo 2040 #1

jcocovich opened this issue Nov 29, 2023 · 1 comment

Comments

@jcocovich
Copy link

I am attempting to run main.py in Visual Studio Code and it complains about no such module 'machine'. What's up?

@pdg137
Copy link
Member

pdg137 commented Nov 29, 2023

Hello,

It sounds like you are running it in Python on your computer instead of running it in MicroPython on the Zumo. (Python does not have a "machine" package.) While VS Code can certainly edit files on the Zumo, to run code interactively or access the REPL you will need some kind of extension.

There are various extensions designed to connect Visual Studio Code to a Raspberry Pi Pico, and since the Zumo is mostly Pico-compatible, any of them would likely work. However we don't have any experience with them and I'm not sure which ones are currently maintained.

There are various possible points of confusion like USB IDs and different methods for accessing files on the board, so I recommend getting started with Thonny and moving to VS Code only once you are very comfortable with it. If you find an extension that works well with the Zumo, could you share it here?

@pdg137 pdg137 changed the title from machine import How to use Visual Studio Code with the Zumo 2040 Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants