Skip to content

Commit

Permalink
Added description of the fifth init parameter: board
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuckie committed Nov 22, 2013
1 parent ce4f371 commit 86959ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion max31855.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(self, cs_pin, clock_pin, data_pin, units = "c", board = GPIO.BCM):
- clock_pin: Clock (SCLK / SCK) pin (Any GPIO)
- data_pin: Data input (SO / MOSI) pin (Any GPIO)
- units: (optional) unit of measurement to return. ("c" (default) | "k" | "f")
- board: (optional) pin numbering method as per RPi.GPIO library (GPIO.BCM (default) | GPIO.BOARD)
'''
self.cs_pin = cs_pin
Expand Down Expand Up @@ -166,4 +167,4 @@ def __str__(self):
except KeyboardInterrupt:
running = False
for thermocouple in thermocouples:
thermocouple.cleanup()
thermocouple.cleanup()

0 comments on commit 86959ee

Please sign in to comment.