wifisocket_x4 v2.0 - led CFG mode Do not blink

vuhazu
Posts: 34
Joined: Wed Dec 21, 2016 2:19 pm

Post

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
User avatar
Espablo
Posts: 1754
Joined: Wed Jun 29, 2016 5:04 pm
Location: Oświęcim

Post

It's a LED for ESP-12
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. :? :roll:
vuhazu
Posts: 34
Joined: Wed Dec 21, 2016 2:19 pm

Post

Espablo 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#L25

Code: Select all

#define LED_RED_PORT    2
I've been tried but not run because i used GPIO 15
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
User avatar
Espablo
Posts: 1754
Joined: Wed Jun 29, 2016 5:04 pm
Location: Oświęcim

Post

Każde urządzenie elektryczne działa o wiele lepiej jeśli podłączysz je do prądu. :? :roll:
vuhazu
Posts: 34
Joined: Wed Dec 21, 2016 2:19 pm

Post

thanks, it worked very well

Return to “Help”