|
|
|
|
@ -20,19 +20,19 @@ |
|
|
|
|
* If all splitflaps report to be initialized before the timeout, the return value is true */ |
|
|
|
|
bool SplitFlap_Wrapper_MoveAllToZeroPosition(void){ |
|
|
|
|
unsigned char cmd[BUF_SIZE] = RS_CMD_PREFIX; |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), "initAll"); |
|
|
|
|
McuShell_SendStr(buf, McuShell_GetStdio()->stdOut); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), (unsigned char*)"initAll"); |
|
|
|
|
McuShell_SendStr(cmd, McuShell_GetStdio()->stdOut); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* display a sentence on the splitflap combination
|
|
|
|
|
* splitflaps must be initialized to be able to display something! |
|
|
|
|
* returns true when all movements finished */ |
|
|
|
|
bool SplitFlap_Wrapper_Display(char *sentence){ |
|
|
|
|
bool SplitFlap_Wrapper_Display(unsigned char *sentence){ |
|
|
|
|
unsigned char cmd[BUF_SIZE] = RS_CMD_PREFIX; |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), "Display "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), (unsigned char*)"Display "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), sentence); |
|
|
|
|
McuShell_SendStr(buf, McuShell_GetStdio()->stdOut); |
|
|
|
|
McuShell_SendStr(cmd, McuShell_GetStdio()->stdOut); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -43,10 +43,10 @@ bool SplitFlap_Wrapper_SetHardwareIdentifier(uint8_t id, uint8_t hwId){ |
|
|
|
|
unsigned char setupId_str[4] = {0}; unsigned char hardwareId_str[4] = {0}; |
|
|
|
|
McuUtility_Num8uToStr(setupId_str, sizeof(setupId_str), id); |
|
|
|
|
McuUtility_Num8uToStr(hardwareId_str, sizeof(hardwareId_str), hwId); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), "setId "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), (unsigned char*)"setId "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), setupId_str); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), " "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), (unsigned char*)" "); |
|
|
|
|
McuUtility_strcat(cmd, sizeof(cmd), hardwareId_str); |
|
|
|
|
McuShell_SendStr(buf, McuShell_GetStdio()->stdOut); |
|
|
|
|
McuShell_SendStr(cmd, McuShell_GetStdio()->stdOut); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|