Closed silverlyra closed 5 years ago
I'm sure I can hack the simulator back to living. It does not need to handle per-led messages, it was already ignoring pixel settings (And setting the whole cell if pixels were being used). Some of the earlier design was with a mind towards bigger canvas mapping. Ie: treating all of the triangles independently so one side, or both sides, could be interacted with (and not always have all 7 mirror each other). Not sure if these changes go counter to those aims, but worth a mention.
Awesome! Yeah, no problem with fixing the simulator later. Maybe can even update it to simulate pixels within cells.
This is a doozy. It integrates the new code from this weekend in
grid.cell
with the rest of the codebase.Known issues
Changes
Local IP auto-detection
On startup,
go_tri
will look for a network interface with a192.168.*.*
IP address to use to talk to the LeDMX units. If it doesnât find one, itâll exit. You can set the local IP manually with--bind
.More NamedTuples
Instead of using bare
(row, col)
tuples, there's a newPosition
subclass ofNamedTuple
. DMX addresses and cell and pixel information now also have their own named tuples.Grid rewrite
TriangleGrid
is now just calledGrid
, and it has a simpler interface. All the cell-selection methods have been factored out into functions in a newgrid/select.py
file:Model simplification
ModelBase
is now a simpler interface to implement.set
sets a single LED at a time. (It's nice, but this is how I broke the simulator, which works with whole cells, not individual LED's.)Show updates
I updated the existing shows for the new
Grid
interface.