MCPcopy
hub / github.com/PiLiDAR/PiLiDAR / gpio_setup

Method gpio_setup

lib/config.py:179–185  ·  view source on GitHub ↗
(self, debug=False)

Source from the content-addressed store, hash-verified

177 return eval(formula)
178
179 def gpio_setup(self, debug=False):
180 GPIO.setmode(GPIO.BCM)
181 GPIO.setwarnings(debug)
182
183 # power relay
184 relay_pin = self.get("STEPPER", "RELAY_PIN")
185 GPIO.setup(relay_pin, GPIO.OUT)
186
187
188def format_value(value, digits):

Callers 1

set_deviceMethod · 0.95

Calls 1

getMethod · 0.95

Tested by

no test coverage detected