USB CDC how to receive values without transmitting
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-07-26 7:09 AM
Posted on July 26, 2017 at 16:09The original post was too long to process during our migration. Please click on the attachment to read the original post.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-03 7:42 AM
Posted on October 03, 2017 at 16:42
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
