1.1.7 • Published 3 years ago

@benkrejci/led-dudes v1.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

led-dudes

Control RGB led strips with traveling and morphing "dudes" (fm sine waves). Supports SK9822 (e.g. Adafruit DotStar) and WS281(X) (e.g. Adafruit NeoPixel) right now. Tested on a Raspberry Pi Zero W with Adafruit DotStar strip via SPI as well as Adafruit NeoPixel strip via PWM & DMA on GPIO18.

Config options

OptionRequiredDescription
ledTypeyesdotstar or SK9822, neopixel or ws281x
stripLengthyesint total number of LEDs
schedulelist of times to be "on", see below for format
dudeslist of "dudes"; see implementation and examples for details

Schedule item should be in form:

state: ON
start: [h, m]
end: [h, m]

Where h is int hours (0 - 23) and m is int minutes (0 - 59)

Usage

Only argument is config file node run.js config/halloween-dotstar.yml

Install

yarn install # or npm install

I use pm2 to start on boot:

yarn global add pm2 # or npm install -g pm2
pm2 startup # follow instructions
pm2 start --name led-dudes run.js -- config/halloween-dotstar.yml
pm2 save

Note that you will need to run as root if you use neopixel (WS281x) mode. For example:

sudo startup
sudo pm2 start --name led-dudes run.js -- config/halloween-neopixel.yml
sudo pm2 save
1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago