mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
dallas pin fix for mt-et & nodemcu
This commit is contained in:
@@ -1039,15 +1039,16 @@ bool System::command_test(const char * value, const int8_t id) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// takes a board profile and populates a data array with GPIO configurations
|
// takes a board profile and populates a data array with GPIO configurations
|
||||||
|
// data = led, dallas, rx, tx, button
|
||||||
bool System::load_board_profile(std::vector<uint8_t> & data, const std::string & board_profile) {
|
bool System::load_board_profile(std::vector<uint8_t> & data, const std::string & board_profile) {
|
||||||
if (board_profile == "S32") {
|
if (board_profile == "S32") {
|
||||||
data = {2, 3, 23, 5, 0}; // Gateway S32
|
data = {2, 3, 23, 5, 0}; // Gateway S32
|
||||||
} else if (board_profile == "E32") {
|
} else if (board_profile == "E32") {
|
||||||
data = {2, 4, 5, 17, 33}; // Gateway E32
|
data = {2, 4, 5, 17, 33}; // Gateway E32
|
||||||
} else if (board_profile == "MT-ET") {
|
} else if (board_profile == "MT-ET") {
|
||||||
data = {2, 4, 23, 5, 0}; // MT-ET Live D1 Mini
|
data = {2, 18, 23, 5, 0}; // MT-ET Live D1 Mini
|
||||||
} else if (board_profile == "NODEMCU") {
|
} else if (board_profile == "NODEMCU") {
|
||||||
data = {2, 4, 23, 5, 0}; // NodeMCU 32S
|
data = {2, 18, 23, 5, 0}; // NodeMCU 32S
|
||||||
} else if (board_profile == "LOLIN") {
|
} else if (board_profile == "LOLIN") {
|
||||||
data = {2, 14, 17, 16, 0}; // Lolin D32
|
data = {2, 14, 17, 16, 0}; // Lolin D32
|
||||||
} else if (board_profile == "WEMOS") {
|
} else if (board_profile == "WEMOS") {
|
||||||
|
|||||||
Reference in New Issue
Block a user