Skip to content

Instantly share code, notes, and snippets.

@marcotchella
Created December 1, 2015 10:37
Show Gist options
  • Save marcotchella/2c7a1cf44afddade952d to your computer and use it in GitHub Desktop.
Save marcotchella/2c7a1cf44afddade952d to your computer and use it in GitHub Desktop.
Experimento controle de servomotor com PWM com placa Intel Galileo GEN 1
'''
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