File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 16
16
uart .baudrate = 19200
17
17
rb = adafruit_rockblock .RockBlock (uart )
18
18
19
+ i2c = board .I2C () # uses board.SCL and board.SDA
20
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
21
+
19
22
# all the sensors
20
- accelo = adafruit_lsm6ds .LSM6DS33 (board . I2C () )
21
- magno = adafruit_lis3mdl .LIS3MDL (board . I2C () )
22
- prox = adafruit_apds9960 .apds9960 .APDS9960 (board . I2C () )
23
- sht = adafruit_sht31d .SHT31D (board . I2C () )
24
- bmp = adafruit_bmp280 .Adafruit_BMP280_I2C (board . I2C () )
23
+ accelo = adafruit_lsm6ds .LSM6DS33 (i2c )
24
+ magno = adafruit_lis3mdl .LIS3MDL (i2c )
25
+ prox = adafruit_apds9960 .apds9960 .APDS9960 (i2c )
26
+ sht = adafruit_sht31d .SHT31D (i2c )
27
+ bmp = adafruit_bmp280 .Adafruit_BMP280_I2C (i2c )
25
28
26
29
# build data
27
30
# can decode on other end with struct.unpack("<6fB5f", data)
You can’t perform that action at this time.
0 commit comments