From 69f2cec045fa4e640f36bae6af214595c492949c Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 25 Sep 2018 14:32:02 +0200 Subject: [PATCH] avr: fix build for Arduino I'm afraid I broke this while merging the I2S changes... --- src/machine/board_arduino.go | 4 ++-- src/machine/machine_avr.go | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/machine/board_arduino.go b/src/machine/board_arduino.go index 77c8bf4e..dbf20061 100644 --- a/src/machine/board_arduino.go +++ b/src/machine/board_arduino.go @@ -13,6 +13,6 @@ const ( ADC1 = 1 ADC2 = 2 ADC3 = 3 - ADC4 = 4 - ADC5 = 5 + ADC4 = 4 // Used by TWI for SDA + ADC5 = 5 // Used by TWI for SCL ) diff --git a/src/machine/machine_avr.go b/src/machine/machine_avr.go index e2fa7da4..2cc5282b 100644 --- a/src/machine/machine_avr.go +++ b/src/machine/machine_avr.go @@ -122,16 +122,6 @@ func (pwm PWM) Set(value uint16) { } } -// 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 -) - // InitADC initializes the registers needed for ADC. func InitADC() { // set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz.