Raspberry Pi Pico program template for python. https://www.hs-anhalt.de

Tobias Müller 2de7d72f00 update Docs and README 2 months ago
core 300ccb7a56 update Pico Firmware 4 months ago
docs 2de7d72f00 update Docs and README 2 months ago
libs 8348f7dd41 fix lib import 10 months ago
pics f67d9a9e9b change folder names 1 year ago
.gitignore 2de7d72f00 update Docs and README 2 months ago
.micropico 2de7d72f00 update Docs and README 2 months ago
LICENSE 37b5939234 initial commit 1 year ago
README.md 2de7d72f00 update Docs and README 2 months ago
README.pdf 2de7d72f00 update Docs and README 2 months ago
boot.py 69d2f671e7 fix boot.py 10 months ago
main.py a4bc78afb9 fix main.py 1 year ago

README.md

Raspberry Pi Pico - Template for Python

Table of Content

  1. Introduction
  2. Required Software
  3. Required Visual Studio Code Plugins
  4. Recommended Visual Studio Code Plugins
  5. Optional Visual Studio Code Themes

1. Introduction

This repository can be used as a template for a new Raspberry Pi Pico python project. For further install instructions, take a look at the "Getting Started with Pico" manual. Information about the MicroPython SDK can be found in the manual "Raspberry Pi Pico Python SDK".

Note: Once you have downloaded/cloned this repository, open it in Visual Studio Code and run > MicroPico > Configure Project command via Ctrl+Shift+P (or the equivalent on your platform) VS Code command palette to initialize MicroPico.

2. Required Software (Windows/Mac-OS/Linux)

Name Description Link
Python
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. https://www.python.org/
Visual Studio Code
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET). https://code.visualstudio.com/
Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. https://git-scm.com/

Additional Dependencies and Install Instructions for Linux and Mac-OS

Mac-OS

To install all requirements for the extension on macOS, run the following command:

xcode-select --install

This installs the following dependencies:

  • Git
  • Tar
  • A native C and C++ compiler (the extension supports GCC and Clang)

Linux

Most Linux distributions come preconfigured with all of the dependencies needed to run the extension. However, some distributions may require additional dependencies. The extension requires the following:

  • Python 3.9 or later
  • Git
  • Tar
  • GDB Multiarch (for debugging)
  • a native C and C++ compiler (the extension supports GCC)
Ubuntu based Linux
sudo apt update
sudo apt install python3 git tar cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib build-essential libftdi1-2 libhidapi-hidraw0 openocd gdb-multiarch
Arch Linux
pacman -S git python tar cmake arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib arm-none-eabi-binutils gdb

3. Required Visual Studio Code Plugins

Name Description Link
Raspberry Pi Pico
This is the official Visual Studio Code extension for Raspberry Pi Pico development. This extension equips you with a suite of tools designed to streamline your Pico projects using Visual Studio Code and the official Pico SDK. https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
MicroPico
"MicroPico" is a Visual Studio Code extension designed to simplify and accelerate the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards. This tool streamlines the coding process, providing code highlighting, auto-completion, code snippets, and project management features, all tailored for the seamless development experience with MicroPython on Raspberry Pi Pico and Pico W microcontrollers. https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go
Python
A Visual Studio Code extension with rich support for the Python language (for all actively supported versions of the language: >=3.7), including features such as IntelliSense (Pylance),linting, debugging, code navigation, code formatting refactoring, variable explorer, test explorer, and more! https://marketplace.visualstudio.com/items?itemName=ms-python.python
Pylance
Pylance is an extension that works alongside Python in Visual Studio Code to provide performant language support. Under the hood, Pylance is powered by Pyright, Microsoft's static type checking tool. Using Pyright, Pylance has the ability to supercharge your Python IntelliSense experience with rich type information, helping you write better code faster. https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
C/C++
The C/C++ extension adds language support for C/C++ to Visual Studio Code, including editing (IntelliSense) and debugging features. https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
C/C++ Extension Pack
This extension pack includes a set of popular extensions for C++ development in Visual Studio Code. https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack
Cortex-Debug
DARM Cortex-M GDB Debugger support for VSCode. https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug
Serial Monitor
The Serial Monitor extension provides a serial monitor to view output from as well as send messages to serial ports. This is often useful when testing or debugging programs on embedded devices. https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-serial-monitor