cancel
Showing results for 
Search instead for 
Did you mean: 

Need to send ASCII and then HEX

SScot.3
Associate II

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?

10 REPLIES 10

Thank you!