Skip to content

Commit f13c3e7

Browse files
committed
refactor: extract device registry and protocol from canvas.py
Move the master device list (206 entries) and category sets (phidget, nonSerial, nonTemp, special, binary devices) from canvas.py into a standalone device_registry module. Define RoasterProtocol and ScaleProtocol in device_protocol.py to document the implicit interface that 30+ machine drivers already implement. All 2252 existing tests pass. Zero behavior change.
1 parent 7579f78 commit f13c3e7

4 files changed

Lines changed: 514 additions & 402 deletions

File tree

src/artisan.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ SOURCES = \
3131
artisanlib/cup_profile.py \
3232
artisanlib/curves.py \
3333
artisanlib/designer.py \
34+
artisanlib/device_protocol.py \
35+
artisanlib/device_registry.py \
3436
artisanlib/devices.py \
3537
artisanlib/dialogs.py \
3638
artisanlib/events.py \

0 commit comments

Comments
 (0)