| Total Complexity | 0 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from PyDMXControl.controllers import uDMXController as Controller |
||
| 2 | |||
| 3 | # Create our controller |
||
| 4 | dmx = Controller() |
||
| 5 | |||
| 6 | # Load fixture in from json |
||
| 7 | dmx.json.load_config('json/load.json') |
||
| 8 | |||
| 9 | # Check fixture was loaded |
||
| 10 | dmx.all_locate() |
||
| 11 | |||
| 12 | # Save fixture back to json |
||
| 13 | print(dmx.json.save_config('json/save.json')) |
||
| 14 | |||
| 15 | # Start console debug for testing |
||
| 16 | dmx.debug_control() |
||
| 17 | |||
| 18 | # Close the controller once we're done |
||
| 19 | dmx.sleep_till_enter() |
||
| 20 | dmx.close() |
||
| 21 |