firmware: pre-built circuitpython bootloader.bin and firmware.uf2 (and the files to build it yourself)
software: circuitpython scripts and libraries working on the sprite
- circuitpython libraries
- the adafruit circuitpython playground page has a lot of good tutorials for doing basic microcontroller things in CP
- built-in "python" modules available in circuitpython
- helpful interactive BOM for ease of assembly
Accessing the Serial Console
nearly any terminal program can communicate with the sprite (baud=112500, data=8 bit, parity=None, flow control=XON/XOFF). For example...
- In terminal type:
ls /dev/tty.*. The sprite will likely be listed as
- Now enter:
screen /dev/tty.YOURBOARDNAMEHERE 115200
- You may or may not see a prompt, press Ctrl+C to halt the sprite
- You can now enter the REPL by pressing any key, or hit Ctrl+D to reload the main.py
- Exit screen at any time by pressing Ctrl+A+</kbd>
- Windows doesn't have a built-in terminal program like MacOS. Personally, I like PuTTY, or termite. You can also use the arduino serial monitor if you'd like!
- For something like PuTTY, set the Connection Type to Serial
- Press the Windows Key and type device manager (select it)
- In device manager, scroll down to "Ports (COM & LPT)" and expand it
- Plug in, then unplug the sprite and notice the impacted "COM" port.
- Return to PuTTY and enter "COM___" in the "Serial Line" field, and then click "Open"
Put all the files located in /software/ on to the sprite and start the serial console (as described above). After pressing Ctrl+C to halt the sprite, press any key to enter the REPL, then type
and press enter to execute the example. For example, it we wanted to run blink.py, it would be...
- blink.py - will blink the green LED.
- i2c_IMU.py - samples all available sensors on the IMU and prints the results
- cursor.py - uses the X,Y data from the IMU accelerometer and moves the computer cursor accordingly
- cpc_test.py - example transmit message for the CC1101 radio