Search found 1 match

by Kaa
Wed May 04, 2016 7:38 pm
Forum: ESP8266 boards
Topic: onewire DS18B20 issue
Replies: 3
Views: 2222

onewire DS18B20 issue

I am trying to get the temperature sensor example from the tutorial to work and it seems there is a flaw with the pin attributes: [code] >>> import time, machine, onewire >>> dat = machine.Pin(12) >>> ds = onewire.DS18B20(onewire.OneWire(dat)) Traceback (most recent call last): File "<stdin>", line ...