https://github.com/anachrocomputer/rgbring
Arduino sketch to drive a ring of 24 WS2812B RGB LEDs. Controlled by pot and pushbutton.
https://github.com/anachrocomputer/rgbring
arduino rgb-led ws2812b
Last synced: about 1 year ago
JSON representation
Arduino sketch to drive a ring of 24 WS2812B RGB LEDs. Controlled by pot and pushbutton.
- Host: GitHub
- URL: https://github.com/anachrocomputer/rgbring
- Owner: anachrocomputer
- Created: 2019-01-26T12:44:31.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T20:26:57.000Z (about 2 years ago)
- Last Synced: 2025-01-16T10:49:21.899Z (over 1 year ago)
- Topics: arduino, rgb-led, ws2812b
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rgbRing #
This Arduino sketch displays some patterns on a ring of Neopixel RGB LEDs,
under the control of a pot and a push-button switch.
## Library Usage ##
This sketch requires the use of the 'FastLED' library.
The library provides all the code to efficiently drive the LED string.
## Hardware Setup ##
The LED ring is connected to Arduino digital pin 3
(change this in the code by changing 'DATA_PIN').
There's an analog pot connected to Arduino analog pin 0 for setting
hues, brightness and so on.
The mode selection is done by a push-button switch on Arduino digital
pin 2 ('BUTTON_PIN' in the code).
The button has a pull-up resistor connected,
and it grounds the input pin when pressed.