neoclock-js

A NeoPixel wall clock made with JavaScript


Keywords
iot, arduino, johnny-five, led, NeoPixel, clock, rgb
License
MIT
Install
npm install neoclock-js@0.0.0

Documentation

neoclock-js Build Status Coverage Status

A NeoPixel wall clock made with JavaScript

prototype

Hardware

Buy from adafruit or AliExpress

WS2812 datasheet

Usage

  1. Setup your NeoPixel (Ring Wall Clock 60 X Ultra Bright WS2812 5050 RGB LED Lamp Panel)
  2. Connect DIN to pin 6 on Arduino
  3. Clone this repo
  4. Run npm install && npm run setup
  5. Run npm start

NOTE: The first pixel is 0 (or 60) on a clock

REPL

There are a few commands you can type in REPL

time()

Get current time for debug

strip

The strip object

circle()

Draw a circle

animating

Is the clock animating

Further reading

https://www.adafruit.com/category/168

https://github.com/ajfisher/node-pixel

http://johnny-five.io/

https://www.arduino.cc/

Contributing

I build this for fun. I really want to try some crazy ideas! Do you have any? Send us a PR!

License

MIT © Steve Mao