This commit is contained in:
Tester23 2025-09-13 15:53:54 +02:00
parent b89baf30f0
commit fe4ed2e277
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@ setPinRole 16 AlwaysHigh
startDriver DMX
SM16703P_Init 50 RGBW
startDriver PixelAnim
*/
#include "../new_cfg.h"
@ -51,7 +52,7 @@ void DMX_Show() {
HAL_Delay_us(12); // MAB ≥8µs
// restore UART and send DMX data
HAL_UART_Init(250000, 2, true);
HAL_UART_Init(250000, 2, false);
for (int i = 0; i < DMX_BUFFER_SIZE; i++) {
HAL_UART_SendByte(g_dmxBuffer[i]);
}

View File

@ -230,6 +230,9 @@ int http_fn_index(http_request_t* request) {
if (DRV_IsRunning("SM16703P")) {
bForceShowRGB = true;
}
if (DRV_IsRunning("DMX")) {
bForceShowRGB = true;
}
#endif
}
http_setup(request, httpMimeTypeHTML); //Add mimetype regardless of the request