mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-04 14:55:23 +00:00
self test - variable as led count (testing for Elektroda user)
This commit is contained in:
@ -585,7 +585,23 @@ void Test_WS2812B() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void Test_WS2812B_misc() {
|
||||
// reset whole device
|
||||
SIM_ClearOBK(0);
|
||||
|
||||
CMD_ExecuteCommand("startDriver SM16703P", 0);
|
||||
CMD_ExecuteCommand("setChannel 6 60", 0);
|
||||
CMD_ExecuteCommand("SM16703P_Init $CH6", 0);
|
||||
CMD_ExecuteCommand("SM16703P_SetPixel all 255 0 128", 0);
|
||||
for(int i = 0; i < 60; i++) {
|
||||
SELFTEST_ASSERT_PIXEL(i, 255, 0, 128);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Test_LEDstrips() {
|
||||
Test_WS2812B_misc();
|
||||
Test_DMX_RGB();
|
||||
Test_DMX_RGBC();
|
||||
Test_DMX_RGBW();
|
||||
|
||||
Reference in New Issue
Block a user