File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 71
71
display_bus ,
72
72
width = DISPLAY_WIDTH ,
73
73
height = DISPLAY_HEIGHT ,
74
- rotation = 180 , # The rotation can be adjusted to match your configuration.
74
+ rotation = 180 , # The rotation can be adjusted to match your configuration.
75
75
auto_refresh = True ,
76
76
native_frames_per_second = 90 ,
77
77
)
105
105
myGroup .append (mySparkline1 )
106
106
107
107
108
- # Add myGroup (containing the sparkline) to the display
108
+ # Add myGroup (containing the sparkline) to the display
109
109
display .show (myGroup )
110
110
111
111
# Start the main loop
119
119
# values (between 0 and 10) will fit within the visible range of this sparkline
120
120
mySparkline1 .add_value (random .uniform (0 , 10 ))
121
121
122
- # turn the display auto_refresh back on
122
+ # turn the display auto_refresh back on
123
123
display .auto_refresh = True
124
124
125
125
# The display seems to be less jittery if a small sleep time is provided
Original file line number Diff line number Diff line change 75
75
display_bus ,
76
76
width = DISPLAY_WIDTH ,
77
77
height = DISPLAY_HEIGHT ,
78
- rotation = 180 , # The rotation can be adjusted to match your configuration.
78
+ rotation = 180 , # The rotation can be adjusted to match your configuration.
79
79
auto_refresh = True ,
80
80
native_frames_per_second = 90 ,
81
81
)
91
91
##########################################
92
92
93
93
# Baseline size of the sparkline chart, in pixels.
94
- chartWidth = display .width - 50
95
- chartHeight = display .height - 50
94
+ chartWidth = display .width - 50
95
+ chartHeight = display .height - 50
96
96
97
97
font = terminalio .FONT
98
98
190
190
# The display seems to be less jittery if a small sleep time is provided
191
191
# You can adjust this to see if it has any effect
192
192
time .sleep (0.01 )
193
-
Original file line number Diff line number Diff line change 75
75
display_bus ,
76
76
width = DISPLAY_WIDTH ,
77
77
height = DISPLAY_HEIGHT ,
78
- rotation = 180 , # The rotation can be adjusted to match your configuration.
78
+ rotation = 180 , # The rotation can be adjusted to match your configuration.
79
79
auto_refresh = True ,
80
80
native_frames_per_second = 90 ,
81
81
)
You can’t perform that action at this time.
0 commit comments