rotaryselect¶
A circular rotary selection widget
Author(s): Tim C
Implementation Notes¶
Hardware:
“* M5 Dial”
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- class rotaryselect.RotarySelect(*args: Any, **kwargs: Any)¶
- Parameters:
x – X pixel coordinate location of the center of the RotarySelect
y – Y pixel coordinate location of the center of the RotarySelect
radius – Distance away from center point to draw the icons or circles
items – List of item configuration values
indicator_color – Hex color for the indicator
indicator_r – Radius of the indicator in pixels
indicator_stroke – Size in pixels of the outline circle
indicator_offset – Offset of the indicator in pixels
indicator_type – The type of indicator to use. Valid values are INDICATOR_TYPE_OUTLINE, and INDICATOR_TYPE_DOT
icon_transparency_index – A color index to set to transparent on the icon palette(s)
label – Label object that will have its text property updated to show the currently selected item label.
kwargs – Any kwargs belonging to displayio.Group
- move_selection_down()¶
Move the selection indicator down 1 space :return: None
- move_selection_up()¶
Move the selection indicator up 1 space :return: None