hi
i would like to modify this micropython code so it can read the DS1920-F5 thermometer
can you help me out?
here's the datasheet
i would like to modify this micropython code so it can read the DS1920-F5 thermometer
Code:
import machine, onewire, ds18x20, time
ds_pin = machine.Pin(16)
ds_sensor = ds18x20.DS18X20(onewire.OneWire(ds_pin))
roms = ds_sensor.scan()
print('Found a ds18x20 device')
while True:
ds_sensor.convert_temp()
time.sleep_ms(750)
for rom in roms:
print(ds_sensor.read_temp(rom))
time.sleep(2)
can you help me out?
here's the datasheet