Go Down

Topic: Anyone using Pyduino for Python w/Firmata (Read 397 times) previous topic - next topic

norbnyc

Hi guys,

Is anyone able to get the analog read function to work? No matter the actual value at at analog pin, the only result pyduino brings back is 0...
Any ideas?

Code: [Select]

import pyduino
import time

a = pyduino.Arduino("COM5")

a.analog[0].set_active(1)
print a.analog[0].read()


http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1198961581

Thanks in advice

Go Up