github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/pwm/pico.go (about)

     1  //go:build pico
     2  
     3  package main
     4  
     5  import "machine"
     6  
     7  var (
     8  	pwm  = machine.PWM4 // Pin 25 (LED on pico) corresponds to PWM4.
     9  	pinA = machine.LED
    10  	pinB = machine.GPIO24
    11  )