This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
#define NUM_LEDS 255 | |
#define DATA_PIN SPI_DATA | |
#define CLOCK_PIN SPI_CLOCK | |
// Define the array of leds | |
CRGB leds[NUM_LEDS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var setTimeout, clearTimeout, setInterval, clearInterval; | |
(function () { | |
var executor = new java.util.concurrent.Executors.newScheduledThreadPool(1); | |
var counter = 1; | |
var ids = {}; | |
setTimeout = function (fn,delay) { | |
var id = counter++; | |
var runnable = new JavaAdapter(java.lang.Runnable, {run: fn}); |