arduino-emulator
Loading...
Searching...
No Matches
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
27static const uint8_t SDA = PIN_WIRE_SDA;
28static const uint8_t SCL = PIN_WIRE_SCL;
29
30#define LED_BUILTIN 2
31
32static const uint8_t D0 = 16;
33static const uint8_t D1 = 5;
34static const uint8_t D2 = 4;
35static const uint8_t D3 = 0;
36static const uint8_t D4 = 2;
37static const uint8_t D5 = 14;
38static const uint8_t D6 = 12;
39static const uint8_t D7 = 13;
40static const uint8_t D8 = 15;
41static const uint8_t RX = 3;
42static const uint8_t TX = 1;
43
44#include "../generic/common.h"
45
46#endif /* Pins_Arduino_h */