23 #ifndef Pins_Arduino_h 24 #define Pins_Arduino_h 26 #include <avr/pgmspace.h> 28 #define NUM_DIGITAL_PINS 20 29 #define NUM_ANALOG_INPUTS 6 30 #define analogInputToDigitalPin(p) ((p < 6) ? (p) + 14 : -1) 32 #if defined(__AVR_ATmega8__) 33 #define digitalPinHasPWM(p) ((p) == 9 || (p) == 10 || (p) == 11) 35 #define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11) 38 #define PIN_SPI_SS (10) 39 #define PIN_SPI_MOSI (11) 40 #define PIN_SPI_MISO (12) 41 #define PIN_SPI_SCK (13) 48 #define PIN_WIRE_SDA (18) 49 #define PIN_WIRE_SCL (19) 54 #define LED_BUILTIN 13 74 #define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)0)) 75 #define digitalPinToPCICRbit(p) (((p) <= 7) ? 2 : (((p) <= 13) ? 0 : 1)) 76 #define digitalPinToPCMSK(p) (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)0)))) 77 #define digitalPinToPCMSKbit(p) (((p) <= 7) ? (p) : (((p) <= 13) ? ((p) - 8) : ((p) - 14))) 79 #define digitalPinToInterrupt(p) ((p) == 2 ? 0 : ((p) == 3 ? 1 : NOT_AN_INTERRUPT)) 201 #if defined(__AVR_ATmega8__) 208 #if defined(__AVR_ATmega8__) 219 #if defined(__AVR_ATmega8__) 251 #define SERIAL_PORT_MONITOR Serial 252 #define SERIAL_PORT_HARDWARE Serial
const uint8_t PROGMEM digital_pin_to_port_PGM[]
const uint16_t PROGMEM port_to_input_PGM[]
static const uint8_t MOSI
const uint8_t PROGMEM digital_pin_to_timer_PGM[]
const uint16_t PROGMEM port_to_output_PGM[]
const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[]
const uint16_t PROGMEM port_to_mode_PGM[]
static const uint8_t MISO