Chapter 5 examples

This commit is contained in:
Danny Staple
2021-12-07 21:34:30 +00:00
parent 4cdabd2403
commit 1f9e6b8f91
20 changed files with 311 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import time
import board
import pwmio
A1_PWM = pwmio.PWMOut(board.GP17)
A1_PWM.duty_cycle = 2**16-1
time.sleep(0.3)
A1_PWM.duty_cycle = 2**15
time.sleep(0.3)
A1_PWM.duty_cycle = 0