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

Method light_on

Software/Python/easysensors.py:1176–1183  ·  view source on GitHub ↗

Sets the duty cycle for the `Grove LED`_. :param int power: Number between **0** and **100** that represents the duty cycle of PWM signal.

(self, power)

Source from the content-addressed store, hash-verified

1174 raise
1175
1176 def light_on(self, power):
1177 """
1178 Sets the duty cycle for the `Grove LED`_.
1179
1180 :param int power: Number between **0** and **100** that represents the duty cycle of PWM signal.
1181
1182 """
1183 self.write(power)
1184
1185 def light_max(self):
1186 """

Callers 3

light_maxMethod · 0.95
handle_ledFunction · 0.80
easy_LED.pyFile · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected