Initialises a :py:class:`~easysensors.Led` object and then returns it. :param str port = "AD1": Can be either ``"AD1"`` or ``"AD2"``. By default it's set to be ``"AD1"``. :returns: An instance of the :py:class:`~easysensors.Led` class and with the port set to ``port``'s val
(self, port="AD1")
| 1038 | return easysensors.Buzzer(port, self, use_mutex=self.use_mutex) |
| 1039 | |
| 1040 | def init_led(self, port="AD1"): |
| 1041 | """ |
| 1042 | Initialises a :py:class:`~easysensors.Led` object and then returns it. |
| 1043 | |
| 1044 | :param str port = "AD1": Can be either ``"AD1"`` or ``"AD2"``. By default it's set to be ``"AD1"``. |
| 1045 | :returns: An instance of the :py:class:`~easysensors.Led` class and with the port set to ``port``'s value. |
| 1046 | |
| 1047 | The ``"AD1"`` and ``"AD2"`` ports are mapped to the following :ref:`hardware-ports-section`. |
| 1048 | |
| 1049 | The ``use_mutex`` parameter of the :py:meth:`~easygopigo3.EasyGoPiGo3.__init__` constructor is passed down to the constructor of :py:class:`~easysensors.Led` class. |
| 1050 | |
| 1051 | """ |
| 1052 | return easysensors.Led(port, self, use_mutex=self.use_mutex) |
| 1053 | |
| 1054 | def init_button_sensor(self, port="AD1"): |
| 1055 | """ |
no outgoing calls
no test coverage detected