Skip to content

Latest commit

 

History

History
81 lines (45 loc) · 2.2 KB

File metadata and controls

81 lines (45 loc) · 2.2 KB

Circuit Python

CircuitPython home page.

Welcome To CircuitPython Tutorial

Install

Follow the general guide on Circuit Python.

  • Find your board and download
  • Connect your board with a data cable.
  • You may need to double click the reset button to bring up the boot loader.
  • A new disk should appear.
  • Copy the .uf2 file to the disk. This will cause the disk to unmount.
  • In a little while, a new disk will appear 'CIRCUITPYTHON'
  • On that disk:
    • code.py is the code that will be run
    • lib contains libraries
    • settings.toml is used to load environment variables

Documentation

CircuitPython API Reference

Libraries

Library How to use

Library Collection

on github

library documentation

Library Documentation

Adafruit Libraries

circup

On GitHub

uv add circup

# Install all imported modules
circup install --auto

# specific
circup install adafruit_thermal_printer
circup uninstall adafruit_thermal_printer

# update:
circup update

VS Code

How to use

Updates

REPL on Mac OS

screen <tty> 115200

help("modules") to list installed modules

On Raspberry

Install Blinka

for Bluetooth, use bleak

Add user to bluetooth group:

sudo usermod -aG bluetooth pi