Files
tinygo/src/machine/board_arduino.go
T
Ayke van Laethem 69f2cec045 avr: fix build for Arduino
I'm afraid I broke this while merging the I2S changes...
2018-09-25 14:32:02 +02:00

19 lines
248 B
Go

// +build avr,arduino
package machine
const CPU_FREQUENCY = 16000000
// LED on the Arduino
const LED = 13
// ADC on the Arduino
const (
ADC0 = 0
ADC1 = 1
ADC2 = 2
ADC3 = 3
ADC4 = 4 // Used by TWI for SDA
ADC5 = 5 // Used by TWI for SCL
)