pin update

This commit is contained in:
Tom
2024-11-07 10:06:01 +01:00
parent 07cbc7f56a
commit 4814d3490d

View File

@@ -198,17 +198,6 @@ const char webpage[] PROGMEM = R"rawliteral(<!DOCTYPE html>
</style>
<script type="application/javascript">
//function sendButtonSignal(buttonCode) {
//console.log(buttonCode)
//fetch(`/sendSignal?value=${buttonCode}`)
//}
function sendButtonSignalField(){
//get value of input
//split it to individual numbers
//send it with delay
}
function sendButtonSignal(buttonCode) {
fetch('/sendSignal', {
method: 'POST',
@@ -276,7 +265,7 @@ unsigned long timeDelay = 5000;
#define IR_RECEIVE_PIN 2
#define IR_TRANSMIT_PIN 3
#define LED 7
#define LED 4
#include <IRremote.hpp> // include the library
#define DELAY_AFTER_SEND 1000