Need to send ASCII and then HEX
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-18 7: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?
Labels:
- Labels:
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-12-01 11:36 AM
Thank you!

- « Previous
-
- 1
- 2
- Next »