mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
cb886a35c9
Add arduino mega 1280 PWM test
13 lines
210 B
Go
13 lines
210 B
Go
// +build arduino_mega1280
|
|
|
|
package main
|
|
|
|
import "machine"
|
|
|
|
var (
|
|
// Configuration on an Arduino Uno.
|
|
pwm = machine.Timer3
|
|
pinA = machine.PH3 // pin 6 on the Mega
|
|
pinB = machine.PH4 // pin 7 on the Mega
|
|
)
|