From 92ba50c7b226c951ba440badf638801f12f3a9ff Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Fri, 14 Dec 2007 04:21:59 +0000 Subject: Adding analogReference() function - needs testing on an ATmega8 (but works on the ATmega 168). --- cores/arduino/wiring.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cores/arduino/wiring.c') diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c index 5dda822..ae8fcdd 100755 --- a/cores/arduino/wiring.c +++ b/cores/arduino/wiring.c @@ -170,10 +170,6 @@ void init() sbi(TCCR2, WGM20); #endif - // set a2d reference to AVCC (5 volts) - cbi(ADMUX, REFS1); - sbi(ADMUX, REFS0); - // set a2d prescale factor to 128 // 16 MHz / 128 = 125 KHz, inside the desired 50-200 KHz range. // XXX: this will not work properly for other clock speeds, and -- cgit v1.2.3-18-g5258