Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/pcf8591_adc_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# normal power and I2C connections. The voltage level should be between 0V/GND and VCC
#
########################################
i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
pcf = PCF8591(i2c)

channel_a = 0
Expand Down
3 changes: 2 additions & 1 deletion examples/pcf8591_analog_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#
########################################

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
pcf = PCF.PCF8591(i2c)

pcf_in_0 = AnalogIn(pcf, PCF.A0)
Expand Down
3 changes: 2 additions & 1 deletion examples/pcf8591_dac_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
# normal power and I2C connections
#
########################################
i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

pcf = PCF8591(i2c)
print("enabling DAC")
Expand Down
3 changes: 2 additions & 1 deletion examples/pcf8591_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# normal power and I2C connections
#
#####################################################################
i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
pcf = PCF.PCF8591(i2c)

pcf_in_0 = AnalogIn(pcf, PCF.A0)
Expand Down