mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
74429b4a14
Rename the "arduino" target to "arduino-uno" to better reflect the board it represents. The "arduino" name is kept as an alias that inherits from "arduino-uno" for backward compatibility. - Rename targets/arduino.json to targets/arduino-uno.json - Create targets/arduino.json as alias inheriting from arduino-uno - Rename board_arduino.go to board_arduino_uno.go - Update build tag from "arduino" to "arduino_uno" - Rename corresponding example files Signed-off-by: deadprogram <ron@hybridgroup.com>
13 lines
205 B
Go
13 lines
205 B
Go
//go:build arduino_uno
|
|
|
|
package main
|
|
|
|
import "machine"
|
|
|
|
var (
|
|
// Configuration on an Arduino Uno.
|
|
pwm = machine.Timer2
|
|
pinA = machine.PB3 // pin 11 on the Uno
|
|
pinB = machine.PD3 // pin 3 on the Uno
|
|
)
|