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

Method input

AppData/app.py:54–55  ·  view source on GitHub ↗
(self, pin)

Source from the content-addressed store, hash-verified

52 def output(self, pin, value):
53 if pin in self._pins: self._pins[pin]['value'] = value
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()

Callers 1

read_pin_valueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected