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

Method setup

AppData/app.py:50–51  ·  view source on GitHub ↗
(self, pin, mode, pull_up_down=None)

Source from the content-addressed store, hash-verified

48 def setmode(self, mode): pass
49 def setwarnings(self, flag): pass
50 def setup(self, pin, mode, pull_up_down=None):
51 self._pins[pin] = {'mode': mode, 'value': 0, 'pull': pull_up_down}
52 def output(self, pin, value):
53 if pin in self._pins: self._pins[pin]['value'] = value
54 def input(self, pin):

Callers 3

set_pin_modeFunction · 0.80
control_pwmFunction · 0.80
generateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected