thearn/Python-Arduino-Command-API

analogRead should cast float?

markisus opened this issue · 1 comments

On my arduino uno, the analog pins are giving decimal data like '4.23' which I believe is a voltage reading. On line 175 in arduino.py, changing the int cast into a float cast makes the function usable. Otherwise it gives a constant 0 readout.

In any case, the cast exception should not be silently ignored?

My mistake I had some code loaded onto the arduino I forgot about