Skip to content

Commit 6445a3d

Browse files
authored
Update bmptest.py
1 parent a08993f commit 6445a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bmptest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from machine import I2C, Pin # create an I2C bus object accordingly to the port you are using
33
from time import sleep
44
#bus = I2C(1, baudrate=100000) # on pyboard
5-
bus = I2C(scl=Pin(4), sda=Pin(5), freq=100000) # on esp8266
5+
bus = I2C(scl=Pin(5), sda=Pin(4), freq=100000) # on esp8266
66
bmp180 = BMP180(bus)
77
bmp180.oversample_sett = 2
88
bmp180.baseline = 101325
@@ -12,4 +12,4 @@
1212
p = bmp180.pressure
1313
altitude = bmp180.altitude
1414
print(temp, p, altitude)
15-
sleep(1)
15+
sleep(1)

0 commit comments

Comments
 (0)