1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Define wiring functions as weak

This way they can be redefined in board variants, allowing for port expansion
This commit is contained in:
Ivan Grokhotkov
2015-01-16 22:46:43 +03:00
parent b09e8e593a
commit 6ea230a1bc
3 changed files with 20 additions and 13 deletions

View File

@ -25,8 +25,6 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#define PROGMEM
#define NUM_DIGITAL_PINS 16
#define NUM_ANALOG_INPUTS 1
@ -38,7 +36,9 @@ static const uint8_t MOSI = 13;
static const uint8_t MISO = 14;
static const uint8_t SCK = 15;
static const uint8_t BUILTIN_LED = 1;
static const uint8_t A0 = 0;
// These serial port names are intended to allow libraries and architecture-neutral
// sketches to automatically default to the correct port name for a particular type