DS18B20

DS18b20 python example

This is follow on from the DS18b20 terminal example at http://www.pibits.net/learning/120.php , this time a python example Code [codesyntax lang=”python”] import os import glob import time os.system(‘modprobe w1-gpio’) #load one wire communication device kernel modules os.system(‘modprobe w1-therm’) base_dir = ‘/sys/bus/w1/devices/’ #point to the address device_folder = glob.glob(base_dir…

Read more

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More