Oct-12-2024, 06:01 PM
thanks for the detailed explanation, there is a lot for me to learn from this.
the code on the pico is just to test some things, but I will have to implement it in the actual code later. then it must indeed be better to prevent problems.
but I'll take a closer look at that.
the code on the pico is just to test some things, but I will have to implement it in the actual code later. then it must indeed be better to prevent problems.
Quote:Is y supposed to be a button debouncer?This code is only intended for testing, Y must ensure that the data is only sent once.
Quote:Why do you sleep between printing the numbers in r7? There is no reason for this. The PC program is not going to read any bytes until 1000 bytes have been written.Indeed, waiting 1 mSec makes no sense.
Quote:You could use a special marker to indicate the end of the transmission.85 & 170 are my special markers, because 0b01010101 and 0b10101010 never appear in my received data.
but I'll take a closer look at that.
I'm not French, but from the netherlands