Skip to content

Instantly share code, notes, and snippets.

@AlexHaxe
AlexHaxe / Main.hx
Last active January 4, 2020 13:35 — forked from jdonaldson/Main.hx
Paths example
import haxe.Int64;
class Main {
static function main() {
printPage(["Home"]);
printPage(["Foo", Boo, "1"]);
printPage(["Foo", "hii", "1"]);
printPage(["Foo64", "hooo", "1234567890123456"]);
printPage(["Scales", "ukulele", "Chromatic"]);
printPage(["Custom", "Path", "To", "Content"]);
@AlexHaxe
AlexHaxe / gist:11114754
Created April 20, 2014 13:57
Impromptu L8 animations
L8Ctl matrixstring 100 matrixstring 400 matrixstring 800 matrixstring c00 matrixstring f00 matrixstring c00 matrixstring 800 matrixstring 400 matrixstring 100 matrixstring 000 repeatsilent 3 5
L8Ctl matrixstring f00f70ff00f000f40880f matrixstring f70ff00f000f40880ff00 matrixstring ff00f000f40880ff00f70 matrixstring 0f000f40880ff00f70ff0 matrixstring 00f40880ff00f70ff00f0 matrixstring 40880ff00f70ff00f000f matrixstring 80ff00f70ff00f000f408 repeatsilent forever 4
L8Ctl super 100 super 400 super 800 super c00 super f00 super 800 repeatsilent forever 5
L8Ctl led 0 0 fff led 1 1 fff led 2 2 fff led 3 3 fff led 4 4 fff led 5 5 fff led 6 6 fff led 7 7 fff matrixuni 000 repeatsilent 10 20
L8Ctl box 0 0 7 7 ff0 060 000
@AlexHaxe
AlexHaxe / gist:11114730
Created April 20, 2014 13:56
Creating an L8 animation
L8Ctl storeframe f00f70ff00f000f40880f storeframe f70ff00f000f40880ff00 storeframe ff00f000f40880ff00f70 storeframe 0f000f40880ff00f70ff0 storeframe 00f40880ff00f70ff00f0 storeframe 40880ff00f70ff00f000f storeframe 80ff00f70ff00f000f408
L8Ctl storeanim 15,1,16,1,17,1,18,1,19,1,20,1,21,1
L8Ctl playanim 11
@AlexHaxe
AlexHaxe / gist:11114713
Created April 20, 2014 13:55
Usage samples (on Windows using COM3)
L8Ctl interface COM3 super f00
- sets super led to red
L8Ctl interface COM3 super fff matrixuni f00
- sets super led to white and matrix to all red
L8Ctl interface COM3 matrixfile icon.png 50 50
- sets matrix to contents of icon.png at offset 50×50
L8Ctl interface COM3 text 00f “this is a test” 1 true