File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 13
13
i2c = board .I2C () # uses board.SCL and board.SDA
14
14
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector
15
15
pm25 = PM25_I2C (i2c , reset_pin = None )
16
-
17
-
16
+
17
+
18
18
# Example written for boards with built-in displays
19
19
display = board .DISPLAY
20
20
43
43
continue
44
44
# Update the label.text property to change the text on the display
45
45
# show some of the values returned by the sensor read, one per line
46
- display_output_label .text = f"PM 1.0: { aqdata [" pm10 standard" ] } \
47
- \n PM 2.5: { aqdata [" pm25 standard" ]} \
48
- \n 1.0um / 0.1L: { aqdata [" particles 10um" ] } \
49
- \n 2.5um / 0.1L: { aqdata [" particles 25um" ] } "
46
+ display_output_label .text = f"PM 1.0: { aqdata [' pm10 standard' ] } \
47
+ \n PM 2.5: { aqdata [' pm25 standard' ]} \
48
+ \n 1.0um / 0.1L: { aqdata [' particles 10um' ] } \
49
+ \n 2.5um / 0.1L: { aqdata [' particles 25um' ] } "
50
50
# Wait a bit between reads
51
- time .sleep (1 )
51
+ time .sleep (1 )
You can’t perform that action at this time.
0 commit comments