Skip to content

Commit e1ca870

Browse files
mabid-a-v
authored andcommitted
defined SDA and SCL pins for Olimex MOD-WIFI-ESP8266(-DEV) (#4562)
1 parent ee1ef4a commit e1ca870

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

boards.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,7 @@ nodemcuv2.menu.UploadSpeed.921600.upload.speed=921600
17951795
##############################################################
17961796
modwifi.name=Olimex MOD-WIFI-ESP8266(-DEV)
17971797
modwifi.build.board=MOD_WIFI_ESP8266
1798+
modwifi.build.variant=modwifi
17981799
modwifi.upload.tool=esptool
17991800
modwifi.upload.maximum_data_size=81920
18001801
modwifi.upload.wait_for_upload_port=true
@@ -1803,7 +1804,6 @@ modwifi.serial.disableDTR=true
18031804
modwifi.serial.disableRTS=true
18041805
modwifi.build.mcu=esp8266
18051806
modwifi.build.core=esp8266
1806-
modwifi.build.variant=generic
18071807
modwifi.build.spiffs_pagesize=256
18081808
modwifi.build.debug_port=
18091809
modwifi.build.debug_level=

tools/boards.txt.py

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@
443443
'name': 'Olimex MOD-WIFI-ESP8266(-DEV)',
444444
'opts': {
445445
'.build.board': 'MOD_WIFI_ESP8266',
446+
'.build.variant': 'modwifi',
446447
},
447448
'macro': [
448449
'resetmethod_ck',

variants/modwifi/pins_arduino.h

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

0 commit comments

Comments
 (0)