Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haugenmitch/macropadpydemo
A CircuitPython translation of the default Macropad RP2040 Arduino demo.
https://github.com/haugenmitch/macropadpydemo
adafruit adafruit-macropad adafruit-rp2040 circuitpython demo macropad rp2040
Last synced: 13 days ago
JSON representation
A CircuitPython translation of the default Macropad RP2040 Arduino demo.
- Host: GitHub
- URL: https://github.com/haugenmitch/macropadpydemo
- Owner: haugenmitch
- License: gpl-3.0
- Created: 2023-10-28T22:00:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-09T07:27:18.000Z (11 months ago)
- Last Synced: 2024-10-10T22:41:45.233Z (about 1 month ago)
- Topics: adafruit, adafruit-macropad, adafruit-rp2040, circuitpython, demo, macropad, rp2040
- Language: Python
- Homepage:
- Size: 31.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MacropadPyDemo
This project is a [CircuitPython](https://github.com/adafruit/circuitpython) rewrite of the [Arduino demo](https://learn.adafruit.com/adafruit-macropad-rp2040/arduino) ([video](https://learn.adafruit.com/assets/103257)) that comes packaged with the [Adafruit Macropad RP2040](https://learn.adafruit.com/adafruit-macropad-rp2040).
This project is intended for educational purposes. Feel free to make use of this project pursuant to the [license](LICENSE).
## Installation Instructions
If you haven't already, you'll need to follow [these instructions](https://learn.adafruit.com/adafruit-macropad-rp2040/circuitpython) in order to run this project on your Macropad RP2040--this will allow your Macropad RP2040 to run CircuitPython code.
## Required Resources
The following are external resources you will need to download and put on your Macropad RP2040 to get this project to run properly.
### Libraries
Here are the necessary libraries. You can find these on [CircuitPython's website](https://circuitpython.org/libraries). Simply download the bundle for the version of CircuitPython your Macropad RP2040 is running and copy the following directories and files into the `lib/` directory of the device.
* adafruit_bitmap_font/
* adafruit_ble/services/standard/hid.mpy
* adafruit_bus_device/
* adafruit_display_text/
* adafruit_hid/
* adafruit_midi/
* adafruit_debouncer.mpy
* adafruit_macropad.mpy
* adafruit_simple_text_display.mpy
* adafruit_ticks.mpy
* neopixel.mpyThis project was created using CircuitPython 8, but may be compatible with other versions.
### Fonts
The default CircuitPython font is too large for this project. Download [this font file](https://github.com/olikraus/u8g2/blob/master/tools/font/bdf/5x8.bdf) from [this incredible selection of fonts](https://github.com/olikraus/u8g2/tree/master/tools/font) from [olikraus](https://github.com/olikraus) and place it in a new directory you create called "fonts" at the root directory of the device (i.e. `CIRCUITPY/fonts/`).
### Code
Once you have the libraries and font loaded, copy/paste [main.py](main.py) to the root directory of the device. If you've done everything correctly, the device should automatically reload and boot into the program.