Skip to content

JS library for interacting with the Onion Omega OLED display.

Notifications You must be signed in to change notification settings

naddeoa/onion-oled-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 OLEDExp = require('onion-oled-js').OLEDExp;

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

See also

About

JS library for interacting with the Onion Omega OLED display.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published