mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
machine/rp2040: add PWM implementation (#2015)
machine/rp2040: add PWM implementation
This commit is contained in:
committed by
GitHub
parent
2d224ae049
commit
a7c53cce06
@@ -0,0 +1,11 @@
|
||||
// +build pico
|
||||
|
||||
package main
|
||||
|
||||
import "machine"
|
||||
|
||||
var (
|
||||
pwm = machine.PWM4 // Pin 25 (LED on pico) corresponds to PWM4.
|
||||
pinA = machine.LED
|
||||
pinB = machine.GPIO24
|
||||
)
|
||||
Reference in New Issue
Block a user