Browse Source

Added I2C scan and clear commands to terminal

rfm69
Xose Pérez 6 years ago
parent
commit
11773c5515
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      code/espurna/settings.ino

+ 10
- 0
code/espurna/settings.ino View File

@ -218,6 +218,16 @@ void _settingsInitCommands() {
*((int*) 0) = 0; // see https://github.com/esp8266/Arduino/issues/1494
});
settingsRegisterCommand(F("I2C.SCAN"), [](Embedis* e) {
i2cScan();
DEBUG_MSG_P(PSTR("+OK\n"));
});
settingsRegisterCommand(F("I2C.CLEAR"), [](Embedis* e) {
i2cClearBus();
DEBUG_MSG_P(PSTR("+OK\n"));
});
settingsRegisterCommand(F("FACTORY.RESET"), [](Embedis* e) {
_settingsFactoryResetCommand();
DEBUG_MSG_P(PSTR("+OK\n"));


Loading…
Cancel
Save