app: add artnet command to set motor speed
This commit is contained in:
parent
dd09112a22
commit
7f06533fe7
@ -1169,10 +1169,17 @@ void main(void)
|
||||
strip_rgbw(-1, -1, -1, (radio_esp8266_received[18 + 6] << 8) + radio_esp8266_received[18 + 7]);
|
||||
}
|
||||
break;
|
||||
case UNIVERSE_OFFSET + 1: // dial position
|
||||
if (dmx_length >= 3) {
|
||||
case UNIVERSE_OFFSET + 1: // dial position or speed
|
||||
if (dmx_length >= 5) {
|
||||
/*
|
||||
uint32_t dial_position = radio_esp8266_received[18 + 0] * 60 * 60 + radio_esp8266_received[18 + 1] * 60 + radio_esp8266_received[18 + 2];
|
||||
command_dials(&dial_position);
|
||||
*/
|
||||
int16_t dial_speed = radio_esp8266_received[18 + 4] * 2;
|
||||
if (radio_esp8266_received[18 + 3] > 127) {
|
||||
dial_speed = -dial_speed;
|
||||
}
|
||||
drv8825_speed(dial_speed);
|
||||
}
|
||||
break;
|
||||
case UNIVERSE_OFFSET + 2: // text front line 1
|
||||
|
Loading…
Reference in New Issue
Block a user