Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analogwrite not working even with new fix #9

Open
suniv opened this issue Oct 8, 2013 · 0 comments
Open

analogwrite not working even with new fix #9

suniv opened this issue Oct 8, 2013 · 0 comments

Comments

@suniv
Copy link

@suniv suniv commented Oct 8, 2013

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.