mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Add backlight pin 13 for D1 R32
This commit is contained in:
parent
1bb974d084
commit
ef1e41334c
@ -1334,6 +1334,7 @@ void webHandleGuiConfig()
|
|||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
add_gpio_select_option(httpMessage, 5, bcklpin); // D8 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 5, bcklpin); // D8 on ESP32 for D1 mini 32
|
||||||
add_gpio_select_option(httpMessage, 12, bcklpin); // TFT_LED on the Liligo Pi
|
add_gpio_select_option(httpMessage, 12, bcklpin); // TFT_LED on the Liligo Pi
|
||||||
|
add_gpio_select_option(httpMessage, 13, bcklpin); // TFT_LED on the D1 R32 + Waveshare
|
||||||
add_gpio_select_option(httpMessage, 15, bcklpin); // TFT_LED on the AZ Touch
|
add_gpio_select_option(httpMessage, 15, bcklpin); // TFT_LED on the AZ Touch
|
||||||
add_gpio_select_option(httpMessage, 16, bcklpin); // D4 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 16, bcklpin); // D4 on ESP32 for D1 mini 32
|
||||||
add_gpio_select_option(httpMessage, 17, bcklpin); // D3 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 17, bcklpin); // D3 on ESP32 for D1 mini 32
|
||||||
|
@ -132,9 +132,9 @@ const char HTTP_CSS[] PROGMEM =
|
|||||||
// const char HTTP_SCRIPT[] PROGMEM = "<script>function "
|
// const char HTTP_SCRIPT[] PROGMEM = "<script>function "
|
||||||
// "c(l){document.getElementById('s').value=l.innerText||l.textContent;document."
|
// "c(l){document.getElementById('s').value=l.innerText||l.textContent;document."
|
||||||
// "getElementById('p').focus();}</script>";
|
// "getElementById('p').focus();}</script>";
|
||||||
const char HTTP_HEADER_END[] PROGMEM =
|
const char HTTP_HEADER_END[] PROGMEM = "</head><body><div id='doc'>";
|
||||||
"</head><body><div id='doc'>";
|
const char HTTP_FOOTER[] PROGMEM =
|
||||||
const char HTTP_FOOTER[] PROGMEM = "<div style='text-align:right;font-size:11px;'><hr/><a href='/about'>" D_MANUFACTURER " ";
|
"<div style='text-align:right;font-size:11px;'><hr/><a href='/about'>" D_MANUFACTURER " ";
|
||||||
const char HTTP_END[] PROGMEM = " " D_HTTP_FOOTER "</div></body></html>";
|
const char HTTP_END[] PROGMEM = " " D_HTTP_FOOTER "</div></body></html>";
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -285,7 +285,7 @@ void webSendPage(AsyncWebServerRequest* request, const char* nodename, const cha
|
|||||||
contentLength += sizeof(HTTP_END) - 1;
|
contentLength += sizeof(HTTP_END) - 1;
|
||||||
contentLength += sizeof(HTTP_FOOTER) - 1;
|
contentLength += sizeof(HTTP_FOOTER) - 1;
|
||||||
|
|
||||||
if(httpdatalength > HTTP_PAGE_SIZE*0) {
|
if(httpdatalength > HTTP_PAGE_SIZE * 0) {
|
||||||
LOG_WARNING(TAG_HTTP, F("Sending page with %u static and %u dynamic bytes"), contentLength, httpdatalength);
|
LOG_WARNING(TAG_HTTP, F("Sending page with %u static and %u dynamic bytes"), contentLength, httpdatalength);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1310,6 +1310,7 @@ void webHandleGuiConfig(AsyncWebServerRequest* request)
|
|||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
add_gpio_select_option(httpMessage, 5, bcklpin); // D8 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 5, bcklpin); // D8 on ESP32 for D1 mini 32
|
||||||
add_gpio_select_option(httpMessage, 12, bcklpin); // TFT_LED on the Liligo Pi
|
add_gpio_select_option(httpMessage, 12, bcklpin); // TFT_LED on the Liligo Pi
|
||||||
|
add_gpio_select_option(httpMessage, 13, bcklpin); // TFT_LED on the D1 R32 + Waveshare
|
||||||
add_gpio_select_option(httpMessage, 15, bcklpin); // TFT_LED on the AZ Touch
|
add_gpio_select_option(httpMessage, 15, bcklpin); // TFT_LED on the AZ Touch
|
||||||
add_gpio_select_option(httpMessage, 16, bcklpin); // D4 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 16, bcklpin); // D4 on ESP32 for D1 mini 32
|
||||||
add_gpio_select_option(httpMessage, 17, bcklpin); // D3 on ESP32 for D1 mini 32
|
add_gpio_select_option(httpMessage, 17, bcklpin); // D3 on ESP32 for D1 mini 32
|
||||||
@ -1379,11 +1380,11 @@ void webHandleWifiConfig(AsyncWebServerRequest* request)
|
|||||||
|
|
||||||
webSendPage(request, haspDevice.get_hostname(), httpMessage.c_str(), false);
|
webSendPage(request, haspDevice.get_hostname(), httpMessage.c_str(), false);
|
||||||
// //webSendFooter(reponse);(httpMessage);
|
// //webSendFooter(reponse);(httpMessage);
|
||||||
// #if defined(STM32F4xx)
|
// #if defined(STM32F4xx)
|
||||||
// httpMessage = "";
|
// httpMessage = "";
|
||||||
// #else
|
// #else
|
||||||
// httpMessage.clear();
|
// httpMessage.clear();
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2226,7 +2227,6 @@ void httpSetup()
|
|||||||
|
|
||||||
#if HASP_USE_WIFI > 0
|
#if HASP_USE_WIFI > 0
|
||||||
|
|
||||||
|
|
||||||
#if !defined(STM32F4xx)
|
#if !defined(STM32F4xx)
|
||||||
|
|
||||||
#if HASP_USE_CONFIG > 0
|
#if HASP_USE_CONFIG > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user