Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#importar librerias from machine import Pin, PWM from time import sleep #codigo de programa def main(): #configuracion de pulso de servo pul_servo = PWM(Pin(25)) pul_servo.freq(60) #variables de incremento y de duty inicial step = 4 duty = 60 #ciclo infinito de programa while(1): duty = duty + step pul_servo.duty(duty) #tiempo entre variacion sleep(0.2) if __name__ == "__main__": main()
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)