File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 7171 display_bus ,
7272 width = DISPLAY_WIDTH ,
7373 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.
7575 auto_refresh = True ,
7676 native_frames_per_second = 90 ,
7777 )
105105myGroup .append (mySparkline1 )
106106
107107
108- # Add myGroup (containing the sparkline) to the display
108+ # Add myGroup (containing the sparkline) to the display
109109display .show (myGroup )
110110
111111# Start the main loop
119119 # values (between 0 and 10) will fit within the visible range of this sparkline
120120 mySparkline1 .add_value (random .uniform (0 , 10 ))
121121
122- # turn the display auto_refresh back on
122+ # turn the display auto_refresh back on
123123 display .auto_refresh = True
124124
125125 # The display seems to be less jittery if a small sleep time is provided
Original file line number Diff line number Diff line change 7575 display_bus ,
7676 width = DISPLAY_WIDTH ,
7777 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.
7979 auto_refresh = True ,
8080 native_frames_per_second = 90 ,
8181 )
9191##########################################
9292
9393# 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
9696
9797font = terminalio .FONT
9898
190190 # The display seems to be less jittery if a small sleep time is provided
191191 # You can adjust this to see if it has any effect
192192 time .sleep (0.01 )
193-
Original file line number Diff line number Diff line change 7575 display_bus ,
7676 width = DISPLAY_WIDTH ,
7777 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.
7979 auto_refresh = True ,
8080 native_frames_per_second = 90 ,
8181 )
You can’t perform that action at this time.
0 commit comments