Skip to content

Data-driven simulation of fireflies using a Pico and LEDs

License

Notifications You must be signed in to change notification settings

Rollcloud/fireflies-pico

Repository files navigation

python

Fireflies

Data-driven simulation of fireflies using a Pico and LEDs.

The LEDs simulate individual fireflies using characteristics described in the following papers:

Demonstration showing the built-in Pico LED in green, and four additional SMD LEDs in orange.

Flashing LEDs

Hardware Setup

  • Pico
  • LEDs (preferably yellow-green, but light-blue, or orange would work too)

Software Setup

Install MicroPython on the Pico and copy the files in rp2/ across to the Pico's root directory.

Setup software on the host machine for linting:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt

Confirm LED pins match those attached to hardware LEDs.

Lint

python -m ruff format
python -m ruff check --fix

About

Data-driven simulation of fireflies using a Pico and LEDs

Topics

Resources

License

Stars

Watchers

Forks

Languages