Skip to content

Commit 1caf93f

Browse files
Update mcp9808_simpletest.py
I am not really sure that I understood your comments being a total novice at this process - I do not know what a lint check being unhappy means. If there are still issues, can you please let me know and I hope I can understand your special terms.
1 parent 5d20bb2 commit 1caf93f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/mcp9808_simpletest.py

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

6-
# This example shows how to get the temperature from a MCP9808 board
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
78
i2c_bus = busio.I2C(board.SCL, board.SDA)
8-
mcp = adafruit_mcp9808.MCP9808(i2c_bus) # Object has only one parameter specified so default address (0x18) is used
9+
mcp = adafruit_mcp9808.MCP9808(i2c_bus)
910

10-
# If the address of the module has been changed (eg by connecting A0 to VDD making address 0x19)
11-
# mcp = adafruit_mcp9808.MCP9808(i2c_bus,0x19) # Object now has two parameters - the new address 0x19 being the second one
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
1214

1315

1416
while True:

0 commit comments

Comments
 (0)