Changed Pi 25 to "LED"
rodzic
d5be37bae4
commit
036f6a1433
|
@ -34,8 +34,8 @@ class PIOPWM:
|
|||
self._sm.put(value)
|
||||
|
||||
|
||||
# Pin 25 is LED on Pico boards
|
||||
pwm = PIOPWM(0, 25, max_count=(1 << 16) - 1, count_freq=10_000_000)
|
||||
# Pin "LED" on Pico boards
|
||||
pwm = PIOPWM(0, "LED", max_count=(1 << 16) - 1, count_freq=10_000_000)
|
||||
|
||||
while True:
|
||||
for i in range(256):
|
||||
|
|
Ładowanie…
Reference in New Issue