lcd-st7032

0.1.0 • Public • Published

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!');

Hello 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.

Readme

Keywords

none

Package Sidebar

Install

npm i lcd-st7032

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • linusu