diff --git a/../../_DS3231_new/OpenBK7231T_App/src/hal/espidf/hal_pins_espidf.c b/src/hal/espidf/hal_pins_espidf.c
index 0897af98..97df25e3 100644
--- a/../../_DS3231_new/OpenBK7231T_App/src/hal/espidf/hal_pins_espidf.c
+++ b/src/hal/espidf/hal_pins_espidf.c
@@ -319,13 +319,19 @@ espPinMapping_t g_pins[] = {
{ "IO3", GPIO_NUM_3, false }, // 3
{ "IO4", GPIO_NUM_4, false }, // 4
{ "IO5", GPIO_NUM_5, false }, // 5
- { "IO9", GPIO_NUM_9, false }, // 6
- { "IO10", GPIO_NUM_10, false }, // 7
- { "IO12", GPIO_NUM_12, false }, // 8
- { "IO13", GPIO_NUM_13, false }, // 9
- { "IO14", GPIO_NUM_14, false }, // 10
- { "IO15", GPIO_NUM_15, false }, // 11
- { "IO16", GPIO_NUM_16, false }, // 12
+ { "NC", GPIO_NUM_NC, true }, // 6
+ { "NC", GPIO_NUM_NC, true }, // 7
+ { "NC", GPIO_NUM_NC, true }, // 8
+ { "IO9", GPIO_NUM_9, false }, // 9
+ { "IO10", GPIO_NUM_10, false }, // 10
+ { "NC", GPIO_NUM_NC, true }, // 11
+ { "IO12", GPIO_NUM_12, false }, // 12
+ { "IO13", GPIO_NUM_13, false }, // 13
+ { "IO14", GPIO_NUM_14, false }, // 14
+ { "IO15", GPIO_NUM_15, false }, // 15
+ { "IO16", GPIO_NUM_16, false }, // 16
+ // ADC only I guess (no GPIO)
+ { "ADC", GPIO_NUM_NC, false }, // 17
};
diff --git a/../../_DS3231_new/OpenBK7231T_App/src/httpserver/http_fns.c b/src/httpserver/http_fns.c
index aafc4b64..4723a155 100644
--- a/../../_DS3231_new/OpenBK7231T_App/src/httpserver/http_fns.c
+++ b/src/httpserver/http_fns.c
@@ -2956,6 +2956,7 @@ int http_fn_cfg_pins(http_request_t* request) {
"}");
poststr(request, "function f(alias, id, c, b, ch1, ch2) {"
+ "if (alias.startsWith(\"NC \")) return;"
"let f = document.getElementById(\"x\");"
"let d = document.createElement(\"div\");"
"d.className = \"hdiv\";"
@@ -2967,6 +2968,10 @@ int http_fn_cfg_pins(http_request_t* request) {
"d.appendChild(s);"
" for (var i = 0; i < sr.length; i++) {"
" if(b && sr[i][0].startsWith(\"PWM\")) continue; "
+#if PLATFORM_ESP8266
+ "ISADC=sr[i][0].startsWith(\"ADC\");"
+ "if(alias.startsWith(\"ADC\")) { if (i>0 && ! ISADC) continue;} else { if (ISADC) continue;}"
+#endif
"var o = document.createElement(\"option\");"
" o.text = sr[i][0];"
" o.value = sr[i][1];"
diff --git a/../../_DS3231_new/OpenBK7231T_App/src/new_pins.h b/src/new_pins.h
index 080ec13f..5687f244 100644
--- a/../../_DS3231_new/OpenBK7231T_App/src/new_pins.h
+++ b/src/new_pins.h
@@ -1137,7 +1137,8 @@ typedef enum channelType_e {
#define PLATFORM_GPIO_MAX 0
#endif
#elif PLATFORM_ESP8266
-#define PLATFORM_GPIO_MAX 13
+//2025-11-22 added NC for unusable IOs 6-8 and 11 plus added ADC, so its 0 to 17 now --> 18
+#define PLATFORM_GPIO_MAX 18
#elif PLATFORM_TR6260
#define PLATFORM_GPIO_MAX 25
#elif PLATFORM_RTL87X0C