Skip to content

jsimonsson/ledpanel-dashboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Led screen dashboard hack

Write your own screen

Simplest possible screen (screens/pixel.js), draws a pixel at a random position every frame:

var util = require('../lib/util');

var SinglePixelScreen = function() {
  this.screenFrames = 10;
  this.g = new util.PixelBuffer();
}

SinglePixelScreen.prototype.update = function(adapter) {
  this.g.clear();
  this.g.setPixel(Math.random() * 64, Math.random() * 16, true);
  adapter.update(this.g);
}

exports.Screen = SinglePixelScreen;

Test locally node test.js pixel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published