mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 11:33:20 +00:00
test
This commit is contained in:
parent
b89baf30f0
commit
fe4ed2e277
@ -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]);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user