Pimoroni Galactic Unicorn Hello World: Difference between revisions

From wikiluntti
Line 15: Line 15:
* Thonny is the da facto
* Thonny is the da facto
* [https://dev.to/blues/your-first-steps-with-raspberry-pi-pico-and-visual-studio-code-4jbd VS Studio]: MicroPico (the id is paulober.pico-w-go). If not found use this https://github.com/microsoft/vscode/issues/108147 because some Linux distros use OpenVSX.
* [https://dev.to/blues/your-first-steps-with-raspberry-pi-pico-and-visual-studio-code-4jbd VS Studio]: MicroPico (the id is paulober.pico-w-go). If not found use this https://github.com/microsoft/vscode/issues/108147 because some Linux distros use OpenVSX.
Some libraries are needed
<syntaxhighlight lang="python">
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN
</syntaxhighlight>
<syntaxhighlight lang="python">
from galactic import GalacticUnicorn
</syntaxhighlight>
<syntaxhighlight lang="python">
from machine import Pin, I2C
</syntaxhighlight>


== Fonts ==
== Fonts ==

Revision as of 11:27, 30 September 2023

Introduction

583 RGB leds in 53x11 grid. Raspberry Pi Pico W (microcontroller), speaker with amplifier, two (2) I2C Stemma/qt sensor sockets, a light sensor (phototransistor) facing front and nine (9) control buttons, a reset button, JST-PH battery connector.

Connecting

Programming

Raspberry Pi Pico can be programmed using Micropython or C/C++. This will deal only with MicroPython.

To upload your file to Pico, it need to be put into bootloader mode: hold down the bootsel button while plugging the USB cable: it should show up as a drive called RPI-RP2.

IDE's

Some libraries are needed

from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN


from galactic import GalacticUnicorn
from machine import Pin, I2C

Fonts

Stationary, centred, scrolling text.

Font library

Sound