Skip to content

Commit cf4d8b2

Browse files
authored
Merge pull request #15 from ladyada/master
added pullup warning
2 parents 0db615b + 31972e3 commit cf4d8b2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/ds18x20_asynctest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# the conversion is in progress.
55
# Author: Louis Bertrand, based on original by Tony DiCola
66

7-
import time
7+
# A 4.7Kohm pullup between DATA and POWER is REQUIRED!
88

9+
import time
910
import board
10-
1111
from adafruit_onewire.bus import OneWireBus
1212
from adafruit_ds18x20 import DS18X20
1313

examples/ds18x20_simpletest.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Simple demo of printing the temperature from the first found DS18x20 sensor every second.
22
# Author: Tony DiCola
3-
import time
43

5-
import board
4+
# A 4.7Kohm pullup between DATA and POWER is REQUIRED!
65

6+
import time
7+
import board
78
from adafruit_onewire.bus import OneWireBus
89
from adafruit_ds18x20 import DS18X20
910

0 commit comments

Comments
 (0)