/pervasive-displays-interpreter

Take in a stream of data and interpret it to send directly to a pervasive displays e-paper screen

Primary LanguageJavaScript

pervasive-displays-interpreter

A Node module to take in a stream of bits representing image data and interpret it to send directly to a pervasive displays e-paper screen.

This module is able to write the device code to update only a section of the screen.

Usage

var PervasiveDisplaysInterpreter = require('pervasive-displays-interpreter')

var options = {
	screenSize : {
		height: 176,
		width: 264
	},
	updateArea : {
		height: 20,
		width: 80,
		xPos : 96,
		yPos : 244
	}
}

var pervDisp = new PervasiveDisplaysInterpreter(options)

fs.createReadStream('img.mono')
  .pipe(pervDisp)
  .pipe(fs.createWriteStream('imgout'))