0.1.0 • Published 9 years ago
lcd-st7032 v0.1.0
ST7032 LCD for Tessel
Installation
npm install --save lcd-st7032
Usage
var tessel = require('tessel');
var ST7032 = require('lcd-st7032');
var port = tessel.port['C'];
var lcd = ST7032.use(port);
lcd.setCursor(3, 0);
lcd.putText('Hello');
lcd.setCursor(7, 1);
lcd.putText('world!');
API
All functions accept an optional callback.
.clear([cb])
Clear the display.
.setCursor(x, y[, cb])
Set the position where the text will be printed.
.putText(str[, cb])
Put some characters at the current cursor position. The cursors x-position will be incremented with each character.
.setLine(y, str[, cb])
Set the text for an entire line. Removes anything currently on the line.
.setBacklight(intensity[, cb])
Set the backlight intensity. intensity
should be a value between 0 and 1
inclusively.
0.1.0
9 years ago