Add comment about pigpio, fix final raw_input
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import os #importing os library so as to communicate with the system
|
||||
import time #importing time library to make Rpi wait because its too impatient
|
||||
os.system ("sudo pigpiod") #Launching GPIO library
|
||||
os.system ("sudo pigpiod") #Launching GPIO library, will say it can't connect if already running
|
||||
time.sleep(1) # As i said it is too impatient and so if this delay is removed you will get an error
|
||||
import pigpio #importing GPIO library
|
||||
|
||||
@@ -94,7 +94,7 @@ def control():
|
||||
|
||||
def arm(): #This is the arming procedure of an ESC
|
||||
print("Connect the battery and press Enter")
|
||||
inp = raw_input()
|
||||
inp = input()
|
||||
if inp == '':
|
||||
pi.set_servo_pulsewidth(ESC, 0)
|
||||
time.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user