This is the setup and steps for the workshop run at SEA-Tech High School in Castle Hayne, NC on October 14, 2024 by Lando Toothman.
See Pimoroni's Getting started with Raspberry Pi Pico Guide for a more detailed walkthrough for connecting Thonny to Raspberry Pi Pico.
Ensure the Thonny IDE is installed.
Open Thonny and select the "MicroPython (Raspberry Pi Pico)" device from the menu in the bottom right corner.
In the Thonny menu, make sure View > Files is selected so that the device files are visible.
Double-click the main.py
file to open it in the Thonny file editor. Press the green play button to run the file on the Stellar Unicorn.
Press the green play button (or press the F5 key).
Your Stellar Unicorn will start flashing 4 colorful LEDs.
Behind each LED is a button labeled A, B, C, or D.
Press one of these buttons to start an example display:
Button | Effect | Description |
---|---|---|
A | Fire | An animation of a burning fire |
B | Supercomputer | An animation of yellow dots that look like a old-computer processing a request |
C | Rainbow | An animation of a flowing rainbow |
D | Today's Date | If connected to Wi-Fi a display of the day of the week and the date of the month |
Pressing C will display a flowing rainbow 🌈.
And ta-da! You're ready to start coding a Stellar Unicorn! 🎉
- Open and run
stellar_paint.py
. - Copy and paste the generated link in your browser.
- Create an image.
- Save the image with the format:
<FLIPBOOK_NAME>_<N>
, where:<FLIPBOOK_NAME>
is the name of your flipbook (e.g.,cross
)<N>
is the frame number (e.g.,2
)
- Create another image that could would make it look like your previous frame moved. Save that image as well.
- Stop the script.
- Open and run
flipbook.py
- Watch your animation!
- (Easy) Update your flipbook to move faster or slower.
- (Medium) Create a flipbook with at least 5 frames.
- (Hard) Program your flipbook to start from the A, B, C, or D button.