We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259e729 commit 41e2d27Copy full SHA for 41e2d27
examples/mpl115a2_displayio_simpletest.py
@@ -4,10 +4,12 @@
4
# SPDX-License-Identifier: MIT
5
6
import time
7
+
8
import board
9
from adafruit_display_text.bitmap_label import Label
-from terminalio import FONT
10
from displayio import Group
11
+from terminalio import FONT
12
13
import adafruit_mpl115a2
14
15
# Simple demo of using the built-in display.
@@ -37,6 +39,8 @@
37
39
# begin main loop
38
40
while True:
41
# update the text of the label(s) to show the sensor readings
- display_output_label.text = f"Pressure: {mpl.pressure:.2f} hPa\nTemperature: {mpl.temperature:.2f} C"
42
+ display_output_label.text = (
43
+ f"Pressure: {mpl.pressure:.2f} hPa\nTemperature: {mpl.temperature:.2f} C"
44
+ )
45
# wait for a bit
46
time.sleep(0.5)
0 commit comments