Skip to content

Commit 3e20239

Browse files
committed
Added WifInfo boars with ESP module choice
1 parent 6186383 commit 3e20239

File tree

2 files changed

+166
-0
lines changed

2 files changed

+166
-0
lines changed

boards.txt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ menu.FlashMode=Flash Mode
55
menu.FlashFreq=Flash Frequency
66
menu.UploadTool=Upload Using
77
menu.ResetMethod=Reset Method
8+
menu.ESPModule=Module
89

910
##############################################################
1011
generic.name=Generic ESP8266 Module
@@ -691,3 +692,82 @@ d1_mini.menu.FlashSize.4M1M.build.spiffs_start=0x300000
691692
d1_mini.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
692693
d1_mini.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
693694
d1_mini.menu.FlashSize.4M1M.build.spiffs_pagesize=256
695+
696+
##############################################################
697+
wifinfo.name=WifInfo
698+
699+
wifinfo.upload.tool=esptool
700+
wifinfo.upload.speed=115200
701+
wifinfo.upload.resetmethod=nodemcu
702+
wifinfo.upload.maximum_size=434160
703+
wifinfo.upload.maximum_data_size=81920
704+
wifinfo.upload.wait_for_upload_port=true
705+
wifinfo.serial.disableDTR=true
706+
wifinfo.serial.disableRTS=true
707+
708+
wifinfo.build.mcu=esp8266
709+
wifinfo.build.f_cpu=80000000L
710+
wifinfo.build.core=esp8266
711+
wifinfo.build.variant=wifinfo
712+
wifinfo.build.flash_mode=qio
713+
wifinfo.build.spiffs_pagesize=256
714+
715+
wifinfo.menu.ESPModule.ESP07=ESP07 (1M/512K SPIFFS)
716+
wifinfo.menu.ESPModule.ESP07.build.board=ESP8266_ESP07
717+
wifinfo.menu.ESPModule.ESP07.build.flash_size=1M
718+
wifinfo.menu.ESPModule.ESP07.build.flash_ld=eagle.flash.1m512.ld
719+
wifinfo.menu.ESPModule.ESP07.build.spiffs_start=0x7B000
720+
wifinfo.menu.ESPModule.ESP07.build.spiffs_end=0xFB000
721+
wifinfo.menu.ESPModule.ESP07.build.spiffs_blocksize=8192
722+
wifinfo.menu.ESPModule.ESP07.upload.maximum_size=499696
723+
724+
wifinfo.menu.ESPModule.ESP12=ESP12 (4M/1M SPIFFS)
725+
wifinfo.menu.ESPModule.ESP12.build.board=ESP8266_ESP12
726+
wifinfo.menu.ESPModule.ESP12.build.flash_size=4M
727+
wifinfo.menu.ESPModule.ESP12.build.flash_ld=eagle.flash.4m1m.ld
728+
wifinfo.menu.ESPModule.ESP12.build.spiffs_start=0x300000
729+
wifinfo.menu.ESPModule.ESP12.build.spiffs_end=0x3FB000
730+
wifinfo.menu.ESPModule.ESP12.build.spiffs_blocksize=8192
731+
wifinfo.menu.ESPModule.ESP12.build.spiffs_pagesize=256
732+
wifinfo.menu.ESPModule.ESP12.upload.maximum_size=1044464
733+
734+
wifinfo.menu.UploadTool.esptool=Serial
735+
wifinfo.menu.UploadTool.esptool.upload.tool=esptool
736+
wifinfo.menu.UploadTool.esptool.upload.verbose=-vv
737+
wifinfo.menu.UploadTool.espota=OTA
738+
wifinfo.menu.UploadTool.espota.upload.tool=espota
739+
740+
wifinfo.menu.CpuFrequency.80=80 MHz
741+
wifinfo.menu.CpuFrequency.80.build.f_cpu=80000000L
742+
wifinfo.menu.CpuFrequency.160=160 MHz
743+
wifinfo.menu.CpuFrequency.160.build.f_cpu=160000000L
744+
745+
wifinfo.menu.FlashFreq.40=40MHz
746+
wifinfo.menu.FlashFreq.40.build.flash_freq=40
747+
wifinfo.menu.FlashFreq.80=80MHz
748+
wifinfo.menu.FlashFreq.80.build.flash_freq=80
749+
750+
wifinfo.menu.FlashMode.dio=DIO
751+
wifinfo.menu.FlashMode.dio.build.flash_mode=dio
752+
wifinfo.menu.FlashMode.qio=QIO
753+
wifinfo.menu.FlashMode.qio.build.flash_mode=qio
754+
755+
wifinfo.menu.UploadSpeed.115200=115200
756+
wifinfo.menu.UploadSpeed.115200.upload.speed=115200
757+
wifinfo.menu.UploadSpeed.9600=9600
758+
wifinfo.menu.UploadSpeed.9600.upload.speed=9600
759+
wifinfo.menu.UploadSpeed.57600=57600
760+
wifinfo.menu.UploadSpeed.57600.upload.speed=57600
761+
wifinfo.menu.UploadSpeed.256000.windows=256000
762+
wifinfo.menu.UploadSpeed.256000.upload.speed=256000
763+
wifinfo.menu.UploadSpeed.230400.linux=230400
764+
wifinfo.menu.UploadSpeed.230400.macosx=230400
765+
wifinfo.menu.UploadSpeed.230400.upload.speed=230400
766+
wifinfo.menu.UploadSpeed.460800.linux=460800
767+
wifinfo.menu.UploadSpeed.460800.macosx=460800
768+
wifinfo.menu.UploadSpeed.460800.upload.speed=460800
769+
wifinfo.menu.UploadSpeed.512000.windows=512000
770+
wifinfo.menu.UploadSpeed.512000.upload.speed=512000
771+
wifinfo.menu.UploadSpeed.921600=921600
772+
wifinfo.menu.UploadSpeed.921600.upload.speed=921600
773+

variants/wifinfo/pins_arduino.h

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
Changed : 20 Nov 2015 Charles-Henri Hallard
24+
Definition for WifInfo boards
25+
see https://github.com/hallard/LibTeleinfo/tree/master/examples/ESP8266_WifInfo
26+
see https://hallard.me/wifinfo/
27+
28+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
29+
*/
30+
31+
#ifndef Pins_Arduino_h
32+
#define Pins_Arduino_h
33+
34+
#define EXTERNAL_NUM_INTERRUPTS 16
35+
#define NUM_DIGITAL_PINS 17
36+
#define NUM_ANALOG_INPUTS 1
37+
38+
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
39+
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
40+
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)
41+
42+
static const uint8_t SDA = 4;
43+
static const uint8_t SCL = 5;
44+
45+
static const uint8_t SS = 15;
46+
static const uint8_t MOSI = 13;
47+
static const uint8_t MISO = 12;
48+
static const uint8_t SCK = 14;
49+
50+
static const uint8_t BUILTIN_LED = 12;
51+
52+
static const uint8_t A0 = 17;
53+
54+
static const uint8_t D0 = 16;
55+
static const uint8_t D1 = 5;
56+
static const uint8_t D2 = 4;
57+
static const uint8_t D3 = 0;
58+
static const uint8_t D4 = 2;
59+
static const uint8_t D5 = 14;
60+
static const uint8_t D6 = 12;
61+
static const uint8_t D7 = 13;
62+
static const uint8_t D8 = 15;
63+
static const uint8_t D9 = 3;
64+
static const uint8_t D10 = 1;
65+
66+
// These serial port names are intended to allow libraries and architecture-neutral
67+
// sketches to automatically default to the correct port name for a particular type
68+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
69+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
70+
//
71+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
72+
//
73+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
74+
//
75+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
76+
//
77+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
78+
//
79+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
80+
// pins are NOT connected to anything by default.
81+
#define SERIAL_PORT_MONITOR Serial1
82+
#define SERIAL_PORT_USBVIRTUAL Serial
83+
#define SERIAL_PORT_HARDWARE Serial
84+
#define SERIAL_PORT_HARDWARE_OPEN Serial
85+
86+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)