Skip to content

Commit 667b903

Browse files
authored
lint, update comments
1 parent 1caf93f commit 667b903

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/mcp9808_simpletest.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import busio
44
import adafruit_mcp9808
55

6-
# This example shows how to get the temperature from a MCP9808 board.
7-
# The object has only one parameter specified so default address (0x18) is used
86
i2c_bus = busio.I2C(board.SCL, board.SDA)
7+
8+
# To initialise using the default address:
99
mcp = adafruit_mcp9808.MCP9808(i2c_bus)
1010

11-
# This second example if for when the address of the module has been changed (eg by connecting A0 to VDD making address=0x19)
12-
# mcp = adafruit_mcp9808.MCP9808(i2c_bus,0x19)
13-
# Object now has two parameters - the new address (0x19) being the second one
11+
# To initialise using a specified address:
12+
# Necessary when, for example, connecting A0 to VDD to make address=0x19
13+
# mcp = adafruit_mcp9808.MCP9808(i2c_bus, 0x19)
14+
1415

1516

1617
while True:

0 commit comments

Comments
 (0)