mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
Fix indentation problem
This commit is contained in:
parent
9313608914
commit
434811707e
1 changed files with 11 additions and 11 deletions
|
|
@ -20,17 +20,17 @@ class Pump(Movement):
|
|||
self.pub_pump(False)
|
||||
|
||||
def gpiod(self):
|
||||
import RPi.GPIO as GPIO
|
||||
GPIO.setwarnings(False)
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(20, GPIO.OUT)
|
||||
GPIO.setup(21, GPIO.OUT)
|
||||
GPIO.output(20, 0)
|
||||
GPIO.output(21, 0)
|
||||
time.sleep(3)
|
||||
print "close"
|
||||
GPIO.output(20, 1)
|
||||
GPIO.output(21, 1)
|
||||
import RPi.GPIO as GPIO
|
||||
GPIO.setwarnings(False)
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(20, GPIO.OUT)
|
||||
GPIO.setup(21, GPIO.OUT)
|
||||
GPIO.output(20, 0)
|
||||
GPIO.output(21, 0)
|
||||
time.sleep(3)
|
||||
print "close"
|
||||
GPIO.output(20, 1)
|
||||
GPIO.output(21, 1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue