Go Down

Topic: Anyone using Pyduino for Python w/Firmata (Read 421 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy