The Python Game Book

code games. learn Python.

User Tools

Site Tools




circuit python

python dialect for microcontrollers, especially from Adafruit. Based on Python and micropython

Adafruit Bluefruit


2MB Flash disk storage

connection to serial console from linux

(because i did not get the MU editor running on linux)

  1. open a terminal using CTRL+ALT+T
  2. type ls /dev/ttyACM*
  3. read the ouput of this command and remember it. in my case, it was: /dev/ttyACM0 (in yellow font). The part to remember is therefore: ttyACM0
  4. check if screen is properly installed by typing screen in a console. if not installed, install it by typing sudo apt install screen
  5. make sure the adafruit device is connected via usb
  6. type in the console: sudo screen /dev/ttyACM0 115200 (this line must be repeated if you loose the connection to adafruit or reboot the computer)

code examples from github

find examples

  1. download the libs and examples folder (zpi archive:
  2. find those examples where the names begins with 'circuit' (matching the name of your board)
  3. make sure on your board is a lib folder and all necessary python libraries (see the import statements of the code example) are inside this lib folder
  4. those examples that only importing the “cp” should work without problems. Other examples may need other boards or additional hardware
en/glossary/c/circuitpython.txt · Last modified: 2020/07/24 11:02 by horst