Skip to content

Commit b0b6e7d

Browse files
committed
Reformating_readme.rst usage example.
1 parent 492b365 commit b0b6e7d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,27 @@ To install in a virtual environment in your current project:
5454
Usage Example
5555
=============
5656

57-
.. code-block:: python
57+
.. code-block:: python3
5858
59-
import adafruit_bme680
60-
import time
61-
import board
59+
import adafruit_bme680
60+
import time
61+
import board
6262
63-
# Create sensor object, communicating over the board's default I2C bus
63+
# Create sensor object, communicating over the board's default I2C bus
6464
i2c = board.I2C() # uses board.SCL and board.SDA
6565
bme680 = adafruit_bme680.Adafruit_BME680_I2C(i2c)
6666
67-
# change this to match the location's pressure (hPa) at sea level
68-
bme680.sea_level_pressure = 1013.25
67+
# change this to match the location's pressure (hPa) at sea level
68+
bme680.sea_level_pressure = 1013.25
6969
70-
while True:
71-
print("\nTemperature: %0.1f C" % bme680.temperature)
72-
print("Gas: %d ohm" % bme680.gas)
73-
print("Humidity: %0.1f %%" % bme680.relative_humidity)
74-
print("Pressure: %0.3f hPa" % bme680.pressure)
75-
print("Altitude = %0.2f meters" % bme680.altitude)
70+
while True:
71+
print("\nTemperature: %0.1f C" % bme680.temperature)
72+
print("Gas: %d ohm" % bme680.gas)
73+
print("Humidity: %0.1f %%" % bme680.relative_humidity)
74+
print("Pressure: %0.3f hPa" % bme680.pressure)
75+
print("Altitude = %0.2f meters" % bme680.altitude)
7676
77-
time.sleep(2)
77+
time.sleep(2)
7878
7979
8080
Contributing

0 commit comments

Comments
 (0)