26 #include "pins_arduino.h" 42 #if defined(analogPinToChannel) 43 #if defined(__AVR_ATmega32U4__) 44 if (pin >= 18) pin -= 18;
46 pin = analogPinToChannel(pin);
47 #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 48 if (pin >= 54) pin -= 54;
49 #elif defined(__AVR_ATmega32U4__) 50 if (pin >= 18) pin -= 18;
51 #elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) 52 if (pin >= 24) pin -= 24;
54 if (pin >= 14) pin -= 14;
57 #if defined(ADCSRB) && defined(MUX5) 60 ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);
67 #if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) 77 #if defined(ADCSRA) && defined(ADCL) 82 while (bit_is_set(ADCSRA, ADSC));
97 return (high << 8) | low;
125 #if defined(TCCR0) && defined(COM00) && !defined(__AVR_ATmega8__) 133 #if defined(TCCR0A) && defined(COM0A1) 141 #if defined(TCCR0A) && defined(COM0B1) 149 #if defined(TCCR1A) && defined(COM1A1) 157 #if defined(TCCR1A) && defined(COM1B1) 165 #if defined(TCCR1A) && defined(COM1C1) 173 #if defined(TCCR2) && defined(COM21) 181 #if defined(TCCR2A) && defined(COM2A1) 189 #if defined(TCCR2A) && defined(COM2B1) 197 #if defined(TCCR3A) && defined(COM3A1) 205 #if defined(TCCR3A) && defined(COM3B1) 213 #if defined(TCCR3A) && defined(COM3C1) 225 #if defined(COM4A0) // only used on 32U4 232 #if defined(TCCR4A) && defined(COM4B1) 240 #if defined(TCCR4A) && defined(COM4C1) 248 #if defined(TCCR4C) && defined(COM4D1) 252 #if defined(COM4D0) // only used on 32U4 260 #if defined(TCCR5A) && defined(COM5A1) 268 #if defined(TCCR5A) && defined(COM5B1) 276 #if defined(TCCR5A) && defined(COM5C1)
void pinMode(uint8_t, uint8_t)
void analogWrite(uint8_t pin, int val)
void analogReference(uint8_t mode)
#define digitalPinToTimer(P)
void digitalWrite(uint8_t, uint8_t)
int analogRead(uint8_t pin)