https://github.com/youpong/m5-neopixel
A sample project that drives NeoPixels using M5StickC Plus
https://github.com/youpong/m5-neopixel
m5stickcplus micropython neopixel
Last synced: about 2 months ago
JSON representation
A sample project that drives NeoPixels using M5StickC Plus
- Host: GitHub
- URL: https://github.com/youpong/m5-neopixel
- Owner: youpong
- License: mit
- Created: 2025-12-18T13:43:10.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-20T16:26:26.000Z (6 months ago)
- Last Synced: 2025-12-22T07:35:22.986Z (6 months ago)
- Topics: m5stickcplus, micropython, neopixel
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# m5-neopixel
A sample project that drives NeoPixels using the M5StickC Plus by M5Stack Technology.
## Development Environment
This program runs in MicroPython within the [UIFlow2](https://uiflow2.m5stack.com).
Tested on UIFlow2 v2.4.0.
## Setup
### Install USB Driver
* Install the FTDI driver.
### Burn Firmware
* Install M5Burner.
* Burn firmware.
### Add RGB Hardware
In UIFlow2, add RGB hardware.
### Edit main.py
Modify the following constants to match your NeoPixel device. For example, if
the number of NeoPixels is 8:
```python
PIXEL_NUM = 8
```
### Download the program
* Using UIFlow2, download the program to the M5StickC Plus.
### Connect the M5StickC Plus and NeoPixel
connect as follows.
| M5StickC Plus | NeoPixel |
|---------------|----------|
| GND | GND |
| 5V | VCC |
| G26 | DIN |
## Setting up a Python Development Environment
### Create and activate virtual environment(venv)
```bash
# create virtual environment
$ python -m venv .venv
# activate for Windows
$ .venv/bin/activate
# activate for macOS / Linux
$ source .venv/bin/activate
```
### To Upgrade pip [if necessary]
```bash
$ pip install --upgrade pip
```
### Installing development dependency packages
```bash
$ pip install -r requirements-dev.txt
```
### format source files
```bash
$ black source_files...
```
### Linting source files
```bash
$ flake8 source_files...
```
## References
- M5Stack. *StickC Plus Product Documentation*.
https://docs.m5stack.com/en/core/m5stickc_plus
- A similar project developed with Arduino IDE:
https://github.com/youpong/m5-neopixel-sketch
- A similar project for the BBC micro:bit:
https://github.com/youpong/mb-neopixel
## License
MIT