GithubHelp home page GithubHelp logo

raspi-ledblinker's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.