Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upanalogwrite not working even with new fix #9
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import the lib
from arduino import Arduino
import time
specify the port as an argument
my_board = Arduino('COM5')
print my_board
declare output pins as a list/tuple
my_board.output([9,10,11])
perform operations
i=0
while(i<10):
print 'Writing Value'
val = my_board.analogWrite(11,255)
time.sleep(10)
i+=1
my_board.close()
This code hangs after 'Writing Value'