We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a08993f commit 6445a3dCopy full SHA for 6445a3d
bmptest.py
@@ -2,7 +2,7 @@
2
from machine import I2C, Pin # create an I2C bus object accordingly to the port you are using
3
from time import sleep
4
#bus = I2C(1, baudrate=100000) # on pyboard
5
-bus = I2C(scl=Pin(4), sda=Pin(5), freq=100000) # on esp8266
+bus = I2C(scl=Pin(5), sda=Pin(4), freq=100000) # on esp8266
6
bmp180 = BMP180(bus)
7
bmp180.oversample_sett = 2
8
bmp180.baseline = 101325
@@ -12,4 +12,4 @@
12
p = bmp180.pressure
13
altitude = bmp180.altitude
14
print(temp, p, altitude)
15
- sleep(1)
+ sleep(1)
0 commit comments