A Tessel module for Adafruit Trellis. Designed for use with the Tessel 1, this module provides a simple interface to the HT16K33 RAM Mapped LED driver that is the heart of the Adafruit Trellis system.
- Straight-forward button/LED access with row-column coordinates.
- Button press and release events
- Brightness and blink control
$ npm install trellis-tessel
To use the module
var tessel = require('tessel'),
Trellis = require('trellis-tessel'),
myTrellis = Trellis(tessel.port['B'], false); // Create a new trellis object connected to portB with interrupts off
myTrellis.ready(function(err) {
if (!err) {
myTrellis.fillDisplay();// Turn on all LEDs
myTrellis.blink(1); // Blink @ 2Hz
}
});
The full is found under API