I hereby claim:
- I am jhalderm on github.
- I am ah (https://keybase.io/ah) on keybase.
- I have a public key whose fingerprint is 3AA6 47A0 94D8 F75A 2861 0198 5AE6 759B 80FB 6D67
To claim this, I am signing this object:
const b = new Blinken({title: "Some title", author: "Me"}); | |
b.run(initializer); |
function initializer(lights) { | |
// Set the strand to full brightness | |
for (let i=0; i<100; i++) { | |
lights[i].a = 1; | |
} | |
// Return our update function | |
return update; | |
} |
// global variable that keeps track of if we are red (true) or green (false) | |
let strandRed = true; | |
function update(lights) { | |
// Loop over all the lights | |
for (let i=0; i<100; i++) { | |
if (strandRed) { | |
// Set red | |
lights[i].rgb(1, 0, 0); |
(new Blinken({ | |
title: "Some title", | |
author: "Me", | |
})).run( (lights) => { | |
// variable that tracks if we are red (true) or green (false) | |
let strandRed = true; | |
// Set the strand to full brightness | |
for (let i=0; i<100; i++) { | |
lights[i].a = 1; |
<meta name="description" content="Blinkenlights" /> | |
<html> | |
<head> | |
<script src="https://blinken.org/client.js"></script> | |
</head> | |
<body></body> | |
</html> |
name: Snake Example | |
description: Blinkenlights Red Snake Example | |
resources: | |
- https://gist.githubusercontent.com/ewust/7957194/raw/e13ed54905eb4b9c57a73c85a60b84b1372ba656/gistfile1.js | |
normalize_css: no | |
wrap: b | |
panel_js: 1 | |
panel_css: 0 |
I hereby claim:
To claim this, I am signing this object: