2021-11-18 07:32 AM
I am trying to send commands to a Netion display which needs ASCII and then termination of 3 hex 0xFFs.
I tried this:
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET);
char Cdata[11] = "bt6.val=[1]";
HAL_UART_Transmit(&huart1, Cdata, 11);
uint8_t data[] = {0x20, 0xFF, 0xFF, 0xFF};
HAL_UART_Transmit(&huart1, data, 4, 100);
But get errors. I thought if I locally define the VARs, I can ship them out.
I need to send "bt6.val=[1]" and then send 0xFF, 0xFF, 0xFF to end the command.
Curious display but really cool to use.
What am I not seeing/ remembering?
2021-12-01 11:36 AM
Thank you!