Created
January 25, 2020 21:33
-
-
Save anotherjesse/2628c1ba6ff7def8ba8cfdb79c060f0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Pin(2, Pin.OUT).value(0) # value(1) | |
| turns on and off the built in blue LED on the esp8266 nodemcu amica |
Author
anotherjesse
commented
Jan 26, 2020
Author
def wag(delay, a, b):
p.duty(a)
time.sleep_ms(delay)
p.duty(b)
time.sleep_ms(delay)
Author
while True: wag(600, 40, 115)
Author
p = machine.PWM(machine.Pin(2), freq=77)
Author
D4 is PWM, Pin 2
Author
maple PWM7 = turtle tail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment