programextensions/blender/demos/hex-keys-leds-run.xtl

HEX1000-keys-leds computing C0DE+BEEF= through physical key contacts and MAX7219 serial output: the complete pinned Nano 1K simulation, checked against the Hex1000 and Front models at every active clock. Title: HEX1000-keys-leds: execution Command: just ext blender hex-keys-leds-run Run: just ext blender hex-keys-leds-run

source · imports bl: extensions/blender/lib/Blender.xtl; bp: extensions/blender/lib/Bpy.xtl; vd: extensions/blender/lib/Video.xtl; kr: extensions/blender/demos/KeysRun.xtl

ʰc̲heck : Char -> Char

function (private) · line 12
ʰc̲heck ← { r →
  n̲ot "exit 0\nerrors 0\n" m̲atch 16 t̲ake r ? ⎕P̲ANIC r
  "exit 0; errors 0"
}

raw : Int

value · line 16
raw ← f̲loor n̲umbers ⎕N̲GET "work/keysrun/samples.txt"
Used in: samples

samples : Int

value · line 17
samples ← (((t̲ally raw) d̲iv 26) c̲at 26) r̲eshape raw
Used in: _

word : Int

value · line 18
word ← f̲irst f̲loor n̲umbers ⎕N̲GET "work/keysrun/spi-word.txt"
Used in: _

_ : Int

function · line 19
_ ← "work/keysrun/run.py" ᵇˡw̲rite! ᵇᵖlauncher

_ : Int

function · line 20
_ ← "work/keysrun/hex-keys-leds-run.cues.toml" ᵇˡw̲rite! (ᵏʳcueTexts, ᵏʳcueTable) ᵛᵈc̲ues 0

_ : Int

function · line 21
_ ← "work/keysrun/hex-keys-leds-run.srt" ᵇˡw̲rite! (ᵏʳcueTexts, ᵏʳcueTable) ᵛᵈs̲rt 0

_ : Int

function · line 22
_ ← "work/keysrun/video.py" ᵇˡw̲rite! ((ᵛᵈlandscape, samples, word) ᵏʳs̲cene 0) c̲at (ᵛᵈr̲ender "hex-keys-leds-run.mp4") c̲at ᵛᵈreport

_ : Int

function · line 23
_ ← "work/keysrun/short.py" ᵇˡw̲rite! ((ᵛᵈshorts, samples, word) ᵏʳs̲cene 0) c̲at (ᵛᵈr̲ender "hex-keys-leds-run-short.mp4") c̲at ᵛᵈreport