I use Supla-IOT-SDK build wifisocket_x4 v2.0 form VM VitualBox
I do not see the configuration for led CFG form wifisocket.c & wifisocket.h
After building and loading the software into ESP8266 - it ok but led CFG mode is not available
http://s1029.photobucket.com/user/babyd ... 1.jpg.html
http://s1029.photobucket.com/user/babyd ... 7.jpg.html
what should I do for CFG led blink when ESP8266 CFG mode
Thanks
wifisocket_x4 v2.0 - led CFG mode Do not blink
-
- Posts: 1754
- Joined: Wed Jun 29, 2016 5:04 pm
- Location: Oświęcim
It's a LED for ESP-12
Add there
https://github.com/SUPLA/supla-espressi ... cket.h#L25
Add there
https://github.com/SUPLA/supla-espressi ... cket.h#L25
Code: Select all
#define LED_RED_PORT 2
Każde urządzenie elektryczne działa o wiele lepiej jeśli podłączysz je do prądu.



-
- Posts: 34
- Joined: Wed Dec 21, 2016 2:19 pm
I've been tried but not run because i used GPIO 15Espablo wrote: Sun May 28, 2017 6:19 pm It's a LED for ESP-12
Add there
https://github.com/SUPLA/supla-espressi ... cket.h#L25Code: Select all
#define LED_RED_PORT 2
i change it to GPIO 16 it's ok
I don't know why GPIO 15 does not work
#ifndef WIFISOCKET_H_
#define WIFISOCKET_H_
#define CFGBTN_TYPE_SELECTION
#ifdef __BOARD_wifisocket_x4
#define USE_GPIO16_OUTPUT
#define LED_RED_PORT 15
#else
#ifndef __BOARD_wifisocket_esp01
#define DS18B20
#define TEMPERATURE_CHANNEL 1
#define LED_RED_PORT 13
#define LED_GREEN_PORT 12
#define LED_BLUE_PORT 14
#endif
#endif
void ICACHE_FLASH_ATTR supla_esp_board_send_channel_values_with_delay(void *srpc);
#endif
-
- Posts: 1754
- Joined: Wed Jun 29, 2016 5:04 pm
- Location: Oświęcim
Każde urządzenie elektryczne działa o wiele lepiej jeśli podłączysz je do prądu.


