Galactic Unicorn offers 53x11 7x17 bright RGB LEDs driven by Pico W's PIO in addition to a 1W amplifier and speaker.
Galactic Unicorn uses SM0 of PIO0.
TODO: Update documentation
We've included helper functions to handle every aspect of drawing to the display and interfacing with the buttons. See the [function reference](#function-reference) for details.
- [Example Program](#example-program)
- [Reference](#reference)
- [Constants](#constants)
- [Buttons](#buttons)
- [WIDTH / HEIGHT](#width--height)
- [Functions](#functions)
- [init](#init)
- [set_pixel](#set_pixel)
- [is_pressed](#is_pressed)
## Example Program
The following example sets up Pico Unicorn, displays some basic demo text and graphics and will illuminate the RGB LED green if the A button is presse
```c++
```
## Reference
### Constants
#### Buttons
The four buttons, A, B, X and Y have correponding constants set to their respective GPIO pins. For example:
The width and height of Pico Unicorn are available in constants `WIDTH` and `HEIGHT`.
For example:
```c++
int num_pixels = pico_unicorn.WIDTH * pico_unicorn.HEIGHT;
```
### Functions
#### init
Sets up Pico Unicorn. `init` must be called before any other functions since it configures the PIO and require GPIO inputs. Just call `init()` like so: