Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made changes to include "ESP8266_" with ITEAD board names… #7024

Merged
merged 3 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6637,18 +6637,18 @@ espectro.menu.baud.3000000.upload.speed=3000000

##############################################################
sonoff.name=ITEAD Sonoff
sonoff.build.board=SONOFF_SV
sonoff.build.board=ESP8266_SONOFF_SV
sonoff.build.extra_flags=-DESP8266
sonoff.build.flash_size=1M
sonoff.build.variant=itead
sonoff.menu.BoardModel.sonoffBasic=ITEAD Sonoff Basic
sonoff.menu.BoardModel.sonoffBasic.build.board=SONOFF_BASIC
sonoff.menu.BoardModel.sonoffBasic.build.board=ESP8266_SONOFF_BASIC
sonoff.menu.BoardModel.sonoffS20=ITEAD Sonoff S20
sonoff.menu.BoardModel.sonoffS20.build.board=SONOFF_S20
sonoff.menu.BoardModel.sonoffS20.build.board=ESP8266_SONOFF_S20
sonoff.menu.BoardModel.sonoffSV=ITEAD Sonoff SV
sonoff.menu.BoardModel.sonoffSV.build.board=SONOFF_SV
sonoff.menu.BoardModel.sonoffSV.build.board=ESP8266_SONOFF_SV
sonoff.menu.BoardModel.sonoffTH=ITEAD Sonoff TH
sonoff.menu.BoardModel.sonoffTH.build.board=SONOFF_TH
sonoff.menu.BoardModel.sonoffTH.build.board=ESP8266_SONOFF_TH
sonoff.upload.tool=esptool
sonoff.upload.maximum_data_size=81920
sonoff.upload.wait_for_upload_port=true
Expand Down
10 changes: 5 additions & 5 deletions tools/boards.txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,18 +866,18 @@
( 'sonoff', {
'name': 'ITEAD Sonoff',
'opts': {
'.build.board': 'SONOFF_SV',
'.build.board': 'ESP8266_SONOFF_SV',
'.build.variant': 'itead',
'.build.extra_flags': '-DESP8266',
'.build.flash_size': '1M',
'.menu.BoardModel.sonoffSV': 'ITEAD Sonoff SV',
'.menu.BoardModel.sonoffSV.build.board': 'SONOFF_SV',
'.menu.BoardModel.sonoffSV.build.board': 'ESP8266_SONOFF_SV',
'.menu.BoardModel.sonoffTH': 'ITEAD Sonoff TH',
'.menu.BoardModel.sonoffTH.build.board': 'SONOFF_TH',
'.menu.BoardModel.sonoffTH.build.board': 'ESP8266_SONOFF_TH',
'.menu.BoardModel.sonoffBasic': 'ITEAD Sonoff Basic',
'.menu.BoardModel.sonoffBasic.build.board': 'SONOFF_BASIC',
'.menu.BoardModel.sonoffBasic.build.board': 'ESP8266_SONOFF_BASIC',
'.menu.BoardModel.sonoffS20': 'ITEAD Sonoff S20',
'.menu.BoardModel.sonoffS20.build.board': 'SONOFF_S20',
'.menu.BoardModel.sonoffS20.build.board': 'ESP8266_SONOFF_S20',
},
'macro': [
'resetmethod_none',
Expand Down
6 changes: 3 additions & 3 deletions variants/itead/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#if defined(ARDUINO_SONOFF_SV)
#if defined(ARDUINO_ESP8266_SONOFF_SV)
#define PIN_WIRE_SCL (5)
static const uint8_t SCL = PIN_WIRE_SCL;
#endif

#if defined(ARDUINO_SONOFF_TH) || defined(ARDUINO_SONOFF_BASIC)
#if defined(ARDUINO_ESP8266_SONOFF_TH) || defined(ARDUINO_ESP8266_SONOFF_BASIC)
#define PIN_WIRE_SCL (14)
static const uint8_t SCL = PIN_WIRE_SCL;
#endif

#if defined(ARDUINO_SONOFF_TH) || defined(ARDUINO_SONOFF_SV)
#if defined(ARDUINO_ESP8266_SONOFF_TH) || defined(ARDUINO_ESP8266_SONOFF_SV)
#define PIN_WIRE_SDA (4)
static const uint8_t SDA = PIN_WIRE_SDA;
#endif
Expand Down