MCPcopy Create free account
hub / github.com/SiddhantSilwal/RaspberryPi-GPIO-Web-Controller / PWM

Method PWM

AppData/app.py:56–57  ·  view source on GitHub ↗
(self, pin, freq)

Source from the content-addressed store, hash-verified

54 def input(self, pin):
55 return self._pins.get(pin, {}).get('value', 0)
56 def PWM(self, pin, freq):
57 return type('PWM', (), {'start': lambda duty: None, 'stop': lambda: None, 'ChangeDutyCycle': lambda duty: None})()
58 def cleanup(self): self._pins.clear()
59
60 GPIO = MockGPIO()

Callers 2

control_pwmFunction · 0.80
generateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected