HT16K33
Description
Library for modules using I2C protocol with HT16K33 chip.
Test
Tested with Adafruits Quad Alphanumeric Display Digits I2C Backpack.
Availability
At this time only 14 segments module library is available.
Setup
npm i -S ht16k33
const Segments = Segments;const display = 0x70 1;
Examples
A clock
const Segments = Segments display = 0x70 1; // display a simple clockdisplay;
Digit roll
const Segments = Segments display = 0x70 1; // default rolling chars are '-\|/'// roll digits for 30s at 10fpsdisplay;
Custom digit roll
const Segments = Segments display = 0x70 1; // set rolling chars to 'rolling'// check 'lib/14-segments-font.js' to list all available charactersdisplay;// roll digits for unlimited time at 2fpsdisplay;
Countdown
const Segments = Segments display = 0x70 1; // 1h countdowndisplay;
Licence
MIT