0.0.2 • Published 8 years ago

onion-oled-js v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

onion-oled-js is a JS library that exposes a collection of functions that wrap the oled-exp executable that controls the onion omega OLED display. This library is promise oriented and aims to provide higher level functionality in the future.

Installation

npm install onion-oled-js

Examples

var OLEDExpr = require('onion-oled-js').OLEDExpr;

OLEDExpr.powerOn()
  .then(OLEDExpr.initialize)
  .then(() => OLEDExpr.write('first thing', 0, 5))
  .then(() => OLEDExpr.write('second thing too', 1, 1))
  .then(() => OLEDExpr.cursor(3, 0))
  .then(() => OLEDExpr.write('really really really really really really long sentence'));

See also