AEMICS PYg boards MicroPython Module User Guide
Int6roduction
Welcome to the Quick-start guide for PYg boards! In this guide, we will explain how to get started with Visual Studio Code in a few steps.
- Setting up the hardware
- Setting up your computer
- Programming your PYg board
This Quick-start covers programming the PYg board using Visual Studio Code. Other IDEs could be used.
Setting up the hardware
Actions
Connect the PYg board to the pc
- Connect the PYg board to the pc via USB with a Micro-USB cable
Setting up your computer
Actions
- Install Visual Studio Code
- Install NodeJS
- Set up Visual Studio Code for programming your PYg board
- Go to code.visualstudio.com
- Download the version for your operating system
- Install Visual Studio Code
- Go to NodeJS.org
- Download and install the version for your operating system
- In Visual Studio Code go to Extensions
and search for Python, click the install button
- In the same Extension window, search for Pymakr and install
- Your PYg board will now show up on the Pymakr Console
- In the Pymakr Console type:
, got a respond? Congratulations, your IDE is set up correctly
Programming your PYg board
Actions
- Use REPL to toggle the onboard LED
- Run .py files on your PYg board
- Fill in the following code into the Shell to toggle the onboard LED on or off via REPL
To let the onboard LED blink repeatedly, a new project has to be created - Create a new folder on your computer
- Copy main.py and boot.py from the PYg board into the created folder
- In VS Code go to File > Open Folder… and open your folder
- Now copy the following code to main.py
- Click on More Actions…
and press Pymakr > Run current file
The code will now run. To let the PYg board run code automatically when powered, main.py has to be uploaded to the board - Click on More Actions…
and press Pymakr > Upload project Congratulations! You can now program your PYg Board!
Execute code after boot-up
boot.py will run on boot-up and can run arbitrary Python, but it is best to keep it minimal main.py is the main script and will run after boot.py
Documents / Resources
![]() |
AEMICS PYg boards MicroPython Module [pdf] User Guide PYg boards, MicroPython Module, PYg boards MicroPython Module |