arduino-emulator
All Classes Namespaces Files Functions Enumerations Pages
pins_arduino.h
1 /*
2  pins_arduino.h - Pin definition functions for Arduino
3  Part of Arduino - http://www.arduino.cc/
4  Copyright (c) 2007 David A. Mellis
5  Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14  You should have received a copy of the GNU Lesser General
15  Public License along with this library; if not, write to the
16  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17  Boston, MA 02111-1307 USA
18  $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
19 */
20 
21 #ifndef Pins_Arduino_h
22 #define Pins_Arduino_h
23 
24 #define PIN_WIRE_SDA (4)
25 #define PIN_WIRE_SCL (5)
26 
27 static const uint8_t SDA = PIN_WIRE_SDA;
28 static const uint8_t SCL = PIN_WIRE_SCL;
29 
30 #define LED_BUILTIN 2
31 
32 static const uint8_t D0 = 16;
33 static const uint8_t D1 = 5;
34 static const uint8_t D2 = 4;
35 static const uint8_t D3 = 0;
36 static const uint8_t D4 = 2;
37 static const uint8_t D5 = 14;
38 static const uint8_t D6 = 12;
39 static const uint8_t D7 = 13;
40 static const uint8_t D8 = 15;
41 static const uint8_t RX = 3;
42 static const uint8_t TX = 1;
43 
44 #include "../generic/common.h"
45 
46 #endif /* Pins_Arduino_h */