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

problem in running a RGB Led with pyfirmata #111

Closed
msarvi opened this issue Sep 13, 2021 · 0 comments
Closed

problem in running a RGB Led with pyfirmata #111

msarvi opened this issue Sep 13, 2021 · 0 comments

Comments

@msarvi
Copy link

msarvi commented Sep 13, 2021

I decided to run RGB led with python Pyfirmata, I read documents, and use the following script:

import pyfirmata
import time
arduino =pyfirmata.Arduino('/dev/cu.usbmodem1411', baudrate=9600)

arduino.digital[9].mode = pyfirmata.OUTPUT
arduino.digital[10].mode = pyfirmata.OUTPUT
arduino.digital[11].mode = pyfirmata.OUTPUT
while True:
    arduino.digital[9].write(0.56)
    arduino.digital[10].write(0.76)
    arduino.digital[11].write(0.67)
    time.sleep(5)

arduino.exit()

no error or exceptions occurred, but the led is not turned on. even I changed the pin modes to PWM.

@msarvi msarvi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant