File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 14
14
# normal power and I2C connections. The voltage level should be between 0V/GND and VCC
15
15
#
16
16
########################################
17
- i2c = board .I2C ()
17
+ i2c = board .I2C () # uses board.SCL and board.SDA
18
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
18
19
pcf = PCF8591 (i2c )
19
20
20
21
channel_a = 0
Original file line number Diff line number Diff line change 18
18
#
19
19
########################################
20
20
21
- i2c = board .I2C ()
21
+ i2c = board .I2C () # uses board.SCL and board.SDA
22
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
22
23
pcf = PCF .PCF8591 (i2c )
23
24
24
25
pcf_in_0 = AnalogIn (pcf , PCF .A0 )
Original file line number Diff line number Diff line change 15
15
# normal power and I2C connections
16
16
#
17
17
########################################
18
- i2c = board .I2C ()
18
+ i2c = board .I2C () # uses board.SCL and board.SDA
19
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
19
20
20
21
pcf = PCF8591 (i2c )
21
22
print ("enabling DAC" )
Original file line number Diff line number Diff line change 18
18
# normal power and I2C connections
19
19
#
20
20
#####################################################################
21
- i2c = board .I2C ()
21
+ i2c = board .I2C () # uses board.SCL and board.SDA
22
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
22
23
pcf = PCF .PCF8591 (i2c )
23
24
24
25
pcf_in_0 = AnalogIn (pcf , PCF .A0 )
You can’t perform that action at this time.
0 commit comments