Skip to content

Blink some leds and register interrupts from buttons on the raspi.

Notifications You must be signed in to change notification settings

gildean/raspi-ledblinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ledblinker

Blink some leds and register interrupts from buttons on the raspi (or some other device with gpio pins).

ledblinker in action

features

You can set an arbitrary number of leds and buttons in the config, nothing is hardcoded to either the server or the frontend.

The changes made in the frontend are broadcast to all connected clients with websockets, so you'll see changes made on any client in real-time on other clients

usage

Make sure you know what you're doing or else you risk frying your board. Always use resistors to protect the pins.

Set your configs in config.json, install modules with npm install and then run the app with ./ledblinker

The leds are set as outputs and the buttons are set as inputs.

For the buttons you can set the interrupt edges (default: both) and the debounce timeouts (default: 200) in the config.

Correct values for the edge are:

  • none
  • both
  • rising
  • falling

The value for the debouncer is set in milliseconds.

license

BSD

About

Blink some leds and register interrupts from buttons on the raspi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published