Open martynwheeler opened 4 years ago
@martynwheeler I think, this answers the "how" of your question: https://github.com/tino/pyFirmata/issues/57#issuecomment-381686268. In particular, "read()
can return None
in the beginning when there aren't any reads yet.".
I am trying to read analog data from the arduino. Whenever I read the data the first value is always None. Subsequent readings are okay. I have implemented a check in my code but i was wondering why this was the case.
Here is my code:
I have tried waiting 1 second before the first reading but this makes no difference
Thanks
Martyn