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

     1  //go:build arduino
     2  
     3  package main
     4  
     5  import "machine"
     6  
     7  var (
     8  	// Configuration on an Arduino Uno.
     9  	pwm  = machine.Timer2
    10  	pinA = machine.PB3 // pin 11 on the Uno
    11  	pinB = machine.PD3 // pin 3 on the Uno
    12  )