Re: Serial communication problem

Phil <[email protected]>
Newsgroups gmane.comp.python.tutor
Message-ID <[email protected]>
I've since had a bright idea but disappointingly it doesn't work. The 
returned result is still "None".

Pico code:

         # Wait for a maximum of 1 second for the status request
         status_request = None
         start_time = utime.ticks_ms()
         while utime.ticks_diff(utime.ticks_ms(), start_time) < 1000:
             status_request = controller.read_char()
             #print(status_request)
             if status_request is not None:
                 break
         print(f"status_request: {status_request}")

The "s" is sent by the python programme but for some unfathomable reason 
the pico code is ignoring it.

-- 
Regards,
Phil
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.