Created
December 1, 2015 10:37
-
-
Save marcotchella/2c7a1cf44afddade952d to your computer and use it in GitHub Desktop.
Experimento controle de servomotor com PWM com placa Intel Galileo GEN 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Experimento controle de servomotor com PWM | |
com placa Intel Galileo GEN 1 | |
mais informacoees: | |
23/11/2015 | |
''' | |
import mraa | |
import time | |
print (mraa.getVersion()) | |
x = mraa.Pwm(9) #seleciona o Pino de GPIO | |
x.period_ms(7) # efetivamente 4,64 ms | |
x.enable(True) | |
x.write(0.30) # periodo ativo 1,4ms | |
while True: | |
z= 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment