diff options
author | Mohammed Habibulla <moch@google.com> | 2016-07-15 18:10:34 +0000 |
---|---|---|
committer | Mohammed Habibulla <moch@google.com> | 2016-07-15 18:10:34 +0000 |
commit | 520fa0547a59eacad7d21e071063ef9f852dd1a6 (patch) | |
tree | ffaf6d690413a209029a2c3d362f9e85ced58d55 /peripheral/libmraa/jsstub/test/lightbulb.js | |
parent | b33fe8d1c1c2ce22c58b02160eeda61b80eb1d26 (diff) | |
download | intel-520fa0547a59eacad7d21e071063ef9f852dd1a6.tar.gz |
Revert "libmraa: sync with upstream (SHA1: d336e9f)"
Builder is failing
This reverts commit b33fe8d1c1c2ce22c58b02160eeda61b80eb1d26.
Change-Id: I7bdf169d7303e381549bd16218dd0a7551b4aba9
Diffstat (limited to 'peripheral/libmraa/jsstub/test/lightbulb.js')
-rw-r--r-- | peripheral/libmraa/jsstub/test/lightbulb.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/peripheral/libmraa/jsstub/test/lightbulb.js b/peripheral/libmraa/jsstub/test/lightbulb.js deleted file mode 100644 index f05ba57..0000000 --- a/peripheral/libmraa/jsstub/test/lightbulb.js +++ /dev/null @@ -1,32 +0,0 @@ -/** -* @fileoverview Implementation of a LightBulb class abstraction -* -*/ - -module.exports = (function() { - "use strict"; - var m = require('../index'); - - /** - * Constructor for a new LightBulb - * @class LightBulb - * - * @classdesc This class abstracts access to the control and data registers - * on an imaginary lightbulb. - * @param {Object} A libmraa I2c object, initialized - */ - function LightBulb (i2cInterface) { - var self = this; - self._i2cInterface = i2cInterface; - - self.getBrightness = function() { - // Presume our brightness data is one byte at offset 4 - return self._i2cInterface.readReg(4); - } - - return self; - } - - return LightBulb; -})(); - |