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

Method blinker_off

Software/Python/easygopigo3.py:826–836  ·  view source on GitHub ↗

Turns *OFF* 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

824 self.set_led(self.LED_RIGHT_BLINKER, 255)
825
826 def blinker_off(self, id):
827 """
828 Turns *OFF* one of the 2 red blinkers that `GoPiGo3`_ has.
829
830 :param int|str id: **0** / **1** for the right / left led or string literals can be used : ``"right"`` and ``"left"``.
831
832 """
833 if id == 1 or id == "left":
834 self.set_led(self.LED_LEFT_BLINKER, 0)
835 if id == 0 or id == "right":
836 self.set_led(self.LED_RIGHT_BLINKER, 0)
837
838
839 def led_on(self, id):

Callers 3

led_offMethod · 0.95
handle_blinkersFunction · 0.80
hardware_test.pyFile · 0.80

Calls 1

set_ledMethod · 0.45

Tested by

no test coverage detected