mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-04 11:41:38 +02:00
fixed MQTT crash during boot if no MQTT was set
added #318 status LED support
This commit is contained in:
parent
ca8142e781
commit
700c5c71e4
8 changed files with 99 additions and 28 deletions
|
@ -362,11 +362,12 @@
|
|||
|
||||
function parsePinout(obj, type) {
|
||||
var e = document.getElementById("pinout");
|
||||
pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq']];
|
||||
pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['led0', 'pinLed0'], ['led1', 'pinLed1']];
|
||||
for(p of pins) {
|
||||
e.appendChild(lbl(p[1], p[0].toUpperCase()));
|
||||
if("ESP8266" == type) {
|
||||
e.appendChild(sel(p[1], [
|
||||
[255, "off"],
|
||||
[0, "D3 (GPIO0)"],
|
||||
[1, "TX (GPIO1)"],
|
||||
[2, "D4 (GPIO2)"],
|
||||
|
@ -388,6 +389,7 @@
|
|||
}
|
||||
else {
|
||||
e.appendChild(sel(p[1], [
|
||||
[255, "off"],
|
||||
[0, "GPIO0"],
|
||||
[1, "TX (GPIO1)"],
|
||||
[2, "GPIO2 (LED)"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue