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

HEX1000-keys-leds from source to a configured Tang Nano 1K. The full physical calculator: actual cell placement, routed wire footprints, both clock results, and schematic configuration. Title: HEX1000-keys-leds: build process Command: just ext blender hex-keys-leds-build Run: just ext blender hex-keys-leds-build

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

ʰc̲heck : Char -> Char

function (private) · line 13
ʰc̲heck ← { result →
  n̲ot "exit 0\nerrors 0\n" m̲atch 16 t̲ake result ? ⎕P̲ANIC "hex-keys-leds-build: Blender failed: " c̲at result
  result
}

rawcells : Float

value · line 18
rawcells ← n̲umbers ᵇˡr̲ead "work/keysbuild/cells.txt"
Used in: cells

rawroutes : Float

value · line 19
rawroutes ← n̲umbers ᵇˡr̲ead "work/keysbuild/routes.txt"
Used in: routes

cells : Float

value · line 20
cells ← (((t̲ally rawcells) d̲iv 4) c̲at 4) r̲eshape rawcells
Used in: _

routes : Float

value · line 21
routes ← (((t̲ally rawroutes) d̲iv 2) c̲at 2) r̲eshape rawroutes
Used in: _

stats : Int

value · line 22
stats ← f̲loor n̲umbers ᵇˡr̲ead "work/keysbuild/stats.txt"

_ : Int

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

_ : Int

function · line 26
_ ← "work/keysbuild/hex-keys-leds-build.cues.toml" ᵇˡw̲rite! (ᵏᵇc̲ues stats, ᵏᵇcueTable) ᵛᵈc̲ues 0

_ : Int

function · line 27
_ ← "work/keysbuild/hex-keys-leds-build.srt" ᵇˡw̲rite! (ᵏᵇc̲ues stats, ᵏᵇcueTable) ᵛᵈs̲rt 0

_ : Int

function · line 28
_ ← "work/keysbuild/video.py" ᵇˡw̲rite! ((ᵛᵈlandscape, cells, routes, stats) ᵏᵇs̲cene 0) c̲at (ᵛᵈr̲ender "hex-keys-leds-build.mp4") c̲at ᵛᵈreport

_ : Int

function · line 29
_ ← "work/keysbuild/short.py" ᵇˡw̲rite! ((ᵛᵈshorts, cells, routes, stats) ᵏᵇs̲cene 0) c̲at (ᵛᵈr̲ender "hex-keys-leds-build-short.mp4") c̲at ᵛᵈreport

r : Char

value · line 31
r ← "work/keysbuild/run.py" ᵇˡr̲un! "work/keysbuild/video.py work/keysbuild/out"

shortRun : Char

value · line 34
shortRun ← "work/keysbuild/run.py" ᵇˡr̲un! "work/keysbuild/short.py work/keysbuild/out-short"