DCC-EX / EX-Turntable

Turntable-EX is a new feature to control a stepper motor based turntable from DCC++ EX
GNU General Public License v3.0
6 stars 5 forks source link

Add text based activity flags #22

Closed peteGSX closed 2 years ago

peteGSX commented 2 years ago

To make it easier for Conductor level users, it's probably better to have activity flags written as text rather than integers to avoid confusion.

Suggestions:

peteGSX commented 2 years ago

Text activities are now done, implementation 100% in the device driver IO_TurntableEX.h:

Turn = 0,             // Rotate turntable, maintain phase
Turn_PInvert = 1,     // Rotate turntable, invert phase
Home = 2,             // Initiate homing
Calibrate = 3,        // Initiate calibration sequence
LED_On = 4,           // Turn LED on
LED_Slow = 5,         // Set LED to a slow blink
LED_Fast = 6,         // Set LED to a fast blink
LED_Off = 7,          // Turn LED off
Acc_On = 8,           // Turn accessory pin on
Acc_Off = 9,          // Turn accessory pin off

Note activities 0 to 2 are the only valid activities at the moment, the rest are yet to be added to Turntable-EX code in these issues:

https://github.com/DCC-EX/Turntable-EX/issues/27 https://github.com/DCC-EX/Turntable-EX/issues/20