tuxeatpi.components.wings module¶
Wings component
-
class
tuxeatpi.components.wings.
Wings
(settings, event_queue, logger)¶ Bases:
tuxeatpi.components.base.BaseComponent
Define wings component
Wings use 4 pins:
- position:
- INPUT
- Help to determine wings position (‘up’ or ‘down’)
- left_switch:
- INPUT
- Event when use push the left wing
- right_switch
- INPUT
- Event when use push the right wing
- movement
- OUTPUT
- Use to start/stop wings movement
-
get_position
()¶ Return the current wings position and calibrate them if not available
-
move_count
(count)¶ Move wings N times
-
move_start
()¶ Start moving wings
-
move_stop
()¶ Stop moving wings
-
move_time
(timeout)¶ Move wings during until timeout
-
move_to_position
(position)¶ Put wings to up position
-
pins
= {'left_switch': None, 'position': None, 'movement': None, 'right_switch': None}¶
-
exception
tuxeatpi.components.wings.
WingsError
¶ Bases:
Exception
Base class for wings exceptions