-
11Button : UART4
Button : UART4
-
12Slider : A2
Slider : A2
-
13Rotary : A5
Rotary : A5
-
14Re-Power
-
15Login
admin admin
-
16Setup Account
-
17License Key
Add License key sent to you:
-
18Add Data Collectors
-
19Add A2_Slider
#!/usr/bin/python3 import os import time import sys adc0 = open("/sys/bus/iio/devices/iio:device0/in_voltage2_raw", "r") devID = "A2_Slider" voltage = int(adc0.read()) print("metric:id=%s,n=Reading,vd=%0.1d,u=S" % (devID, voltage)) adc0.seek(0) time.sleep(1) adc0.close()
-
20Add A5_Rotation
#!/usr/bin/python3 import os import time import sys adc0 = open("/sys/bus/iio/devices/iio:device0/in_voltage4_raw", "r") devID = "A5_Rotation" voltage = int(adc0.read()) print("metric:id=%s,n=Reading,vd=%0.1d,u=S" % (devID, voltage)) adc0.seek(0) time.sleep(1) adc0.close()
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Just in case someone else runs into this problem, if the wlan0 device is unrecognized, check that the PocketBeagle board pins are schmooshed down all the way.
Are you sure? yes | no