Cannot Input Mode Pin 12, 14, 15. ESP8266
Author: YovanggaAnandhikaCreated May 22, 2023Updated Dec 21, 2023
Device Type : Lolin V3 (ESP8266 Wifi); Shorted GND and Pin 12, 14, 15 Not Working. But Output Mode Work;
Whats Wrong ?
let board = new Board({ debug : false, repl : false, port : "COM5"});
board.on("ready", async () => {
const Up = new Relay({ pin : 4 });
const Button1 = new Button({ pin : 2 }); // Pin D4
const Button2 = new Button({ pin : 13 }); // pin D5
await Ticket.on("down", async () => {
//await Up.close();
});
await Button1.on("up", async () => {
await Up.open();
await setTimeout(async () => {
await Up.close();
}, 500)
}); // its Work
await Button2.on("up", async () => {
await Up.open();
await setTimeout(async () => {
await Up.close();
}, 500)
}); // Not Work
});
Source: rwaldron/johnny-five