Browse Source

Typo fix

fastled
Xose Pérez 8 years ago
parent
commit
8c72959d2f
2 changed files with 10 additions and 2 deletions
  1. +8
    -0
      README.md
  2. +2
    -2
      code/src/code.ino

+ 8
- 0
README.md View File

@ -52,6 +52,14 @@ Once you have flashed it you can flash it again over-the-air using the ```ota```
> platformio run --target uploadfs -e ota
```
When using OTA environment it defaults to the IP address of the device in SoftAP mode. If you want to flash it when connected to your home network best way is to supply the IP of the device:
```bash
> platformio run --target upload -e ota --upload_port 192.168.1.151
> platformio run --target uploadfs -e ota --upload_port 192.168.1.151
```
Library dependencies are automatically managed via PlatformIO Library Manager.
## Usage


+ 2
- 2
code/src/code.ino View File

@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MODEL "SONOFF"
#define BUTTON_PIN 0
#define RELAY_PIN 12
#define LED_PIN 13ter
#define LED_PIN 13
#define ADMIN_PASS "fibonacci"
#define CONFIG_PATH "/.config"
@ -986,7 +986,7 @@ void hardwareLoop() {
if (button1.loop()) {
if (button1.getEvent() == EVENT_SINGLE_CLICK) toggleRelay();
if (button1.getEvent() == EVENT_DOUBLE_CLICK) wifiSetupAP();
if (button1.getEvent() == EVENT_LONG_CLICK) ESP.restart();
if (button1.getEvent() == EVENT_LONG_CLICK) ESP.reset();
}
showStatus();
}


Loading…
Cancel
Save