github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/pwm/arduino-mega1280.go (about) 1 //go:build arduino_mega1280 2 3 package main 4 5 import "machine" 6 7 var ( 8 // Configuration on an Arduino Uno. 9 pwm = machine.Timer3 10 pinA = machine.PH3 // pin 6 on the Mega 11 pinB = machine.PH4 // pin 7 on the Mega 12 )