aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/wiring.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2007-12-14 04:21:59 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2007-12-14 04:21:59 +0000
commit92ba50c7b226c951ba440badf638801f12f3a9ff (patch)
treeca555729c7eafb672c0fde62b76d852daebb93f6 /cores/arduino/wiring.h
parent0292fe91fc2de0e5c5b374a6d0e0c3879fe49387 (diff)
Adding analogReference() function - needs testing on an ATmega8 (but works on the ATmega 168).
Diffstat (limited to 'cores/arduino/wiring.h')
-rwxr-xr-xcores/arduino/wiring.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h
index e0c5315..df43e6c 100755
--- a/cores/arduino/wiring.h
+++ b/cores/arduino/wiring.h
@@ -57,6 +57,10 @@ extern "C"{
#define FALLING 2
#define RISING 3
+#define INTERNAL 3
+#define DEFAULT 1
+#define EXTERNAL 0
+
// undefine stdlib's abs if encountered
#ifdef abs
#undef abs
@@ -93,6 +97,7 @@ void pinMode(uint8_t, uint8_t);
void digitalWrite(uint8_t, uint8_t);
int digitalRead(uint8_t);
int analogRead(uint8_t);
+void analogReference(uint8_t mode);
void analogWrite(uint8_t, int);
void beginSerial(long);