File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212import board
1313import displayio
1414from displayio_gauge import Gauge
15- from displayio_effects import fluctuation_effect
15+ from displayio_effects import WidgetType , fluctuation_effect
1616
1717display = board .DISPLAY
1818
2727main_group .append (bg_sprite )
2828display .show (main_group )
2929
30- fluctuation_effect .hook_fluctuation_effect (Gauge , "level" )
30+ fluctuation_effect .hook_fluctuation_effect (Gauge , WidgetType . GAUGE )
3131
3232my_gauge = Gauge (
3333 x = 90 ,
Original file line number Diff line number Diff line change 1111import displayio
1212import terminalio
1313from displayio_dial import Dial
14- from displayio_effects import fluctuation_effect
14+ from displayio_effects import WidgetType , fluctuation_effect
1515
1616# Fonts used for the Dial tick labels
1717tick_font = terminalio .FONT
2626maximum_value = 100
2727
2828# Hook in the throttle effect for the Dial widget
29- fluctuation_effect .hook_fluctuation_effect (Dial , "value" )
29+ fluctuation_effect .hook_fluctuation_effect (Dial , WidgetType . DIAL )
3030
3131# Create a Dial widget
3232my_dial = Dial (
You can’t perform that action at this time.
0 commit comments