eightbyeight
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -39,3 +39,11 @@ var LEDBackpack = require('./led_backpack') | ||
EightByEight.prototype.allOn = function(){ | ||
this.disp.allOn() | ||
} | ||
EightByEight.prototype.allOff = function(){ | ||
this.disp.allOff() | ||
} | ||
module.exports = EightByEight | ||
@@ -74,3 +74,10 @@ var i2c = require('i2c'); | ||
LEDBackpack.prototype.clear = function(){ | ||
LEDBackpack.prototype.allOn = function(){ | ||
this.buffer = [ 1, 1, 1, 1, 1, 1, 1, 1 ] | ||
if (this.transactionLevel === 0) { | ||
this.writeDisplay() | ||
} | ||
} | ||
LEDBackpack.prototype.allOff = function(){ | ||
this.buffer = [ 0, 0, 0, 0, 0, 0, 0, 0 ] | ||
@@ -82,2 +89,4 @@ if (this.transactionLevel === 0) { | ||
LEDBackpack.prototype.clear = LEDBackpack.prototype.allOff | ||
LEDBackpack.prototype.startTransaction = function(){ | ||
@@ -84,0 +93,0 @@ this.transactionLevel++; |
{ | ||
"name": "eightbyeight", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Node library for Adafruit 8x8 LED Matrix", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5285
117