2017-07-26 07:09 AM
2017-10-03 07:42 AM
Hello!
Just add to your 'while loop' the CDC_Transmit_FS(..); function.
like this
/* USER CODE BEGIN 3 */
DataToSend[0] = 0x11; DataToSend[5] = 0x22; DataToSend[6] = sensors.gp2y0a60szlf_distance_cm; DataToSend[9] = 0x0A;CDC_Transmit_FS(DataToSend, 10);
Note that CDC_Transmit_FS(..) is tweaked and you can't check the result of function if is succeded or busy.
Regards
vf