2020-10-20 02:50 AM
I'm getting value from LM35 sensor and i am converting it to celcius. Then I am trying to send it to serial port via UART but i couldn't do it. What codes should i use to convert data to bits. Thanks.
Solved! Go to Solution.
2020-10-20 02:59 AM
char str[16];
HAL_UART_Transmit(&huart1, (uint8_t *)str, sprintf(str, "%d\n", adcvalue), 0xFFFF);
2020-10-20 02:59 AM
char str[16];
HAL_UART_Transmit(&huart1, (uint8_t *)str, sprintf(str, "%d\n", adcvalue), 0xFFFF);
2020-10-20 03:31 AM
Thank you so much!
2020-10-20 03:31 AM
Thank you so much!