MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / blinker_on

Method blinker_on

Software/Python/easygopigo3.py:813–824  ·  view source on GitHub ↗

Turns *ON* one of the 2 red blinkers that `GoPiGo3`_ has. :param int|str id: **0** / **1** for the right / left led or string literals can be used : ``"right"`` and ``"left"``.

(self, id)

Source from the content-addressed store, hash-verified

811
812
813 def blinker_on(self, id):
814 """
815 Turns *ON* one of the 2 red blinkers that `GoPiGo3`_ has.
816
817 :param int|str id: **0** / **1** for the right / left led or string literals can be used : ``"right"`` and ``"left"``.
818
819
820 """
821 if id == 1 or id == "left":
822 self.set_led(self.LED_LEFT_BLINKER, 255)
823 if id == 0 or id == "right":
824 self.set_led(self.LED_RIGHT_BLINKER, 255)
825
826 def blinker_off(self, id):
827 """

Callers 3

led_onMethod · 0.95
handle_blinkersFunction · 0.80
hardware_test.pyFile · 0.80

Calls 1

set_ledMethod · 0.45

Tested by

no test coverage detected