on a fresh BeagleBone Green ( debian not updated) this script was working
*#! /usr/bin/python* *import sht31* *import mraa* *cov = mraa.Aio(0)* *print "COV: %s" % cov.read()* *with sht31.SHT31(2) as sht31:* * sht31.turn_heater_on()* * sht31.turn_heater_off()* * temperature, humidity = sht31.get_temp_and_humidity()* * print "Temperature: %s" % temperature* * print "Humidity: %s" % humidity* AFTER an apt-get install upm , that has updated librma0 and of course no change of port, sensor etc.. The same script returns an error : *Traceback (most recent call last):* * File "./test.py", line 5, in <module>* * cov = mraa.Aio(0)* * File "/usr/lib/python2.7/dist-packages/mraa.py", line 1544, in __init__* * this = _mraa.new_Aio(pin)* *ValueError: Invalid AIO pin specified - do you have an ADC?* What did I wrong ? what is the solution ? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2240e961-0de9-43f6-b8d1-187211d20049%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.