[Tutor] Serial communication problem

Phil phillor9 at gmail.com
Wed Dec 13 02:01:53 EST 2023


On 13/12/23 13:58, Cameron Simpson wrote:

> Is there any reason for any of the reads to be nonblocking? Personally 
> I find blocking reads easier to reason about.

No real reason Cameron, and thank you for mentioning it, other than 
non-blocking reads have always worked, providing there's only one in an 
infinite loop. The dashboard code uses  what could be described as a 
semi-blocking read; it blocks for a preset time. This is useful because 
the same pico code can be used with it's own display and with or without 
a serial a connection.

-- 

Regards,
Phil



More information about the Tutor mailing list