pin update
This commit is contained in:
@@ -198,17 +198,6 @@ const char webpage[] PROGMEM = R"rawliteral(<!DOCTYPE html>
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script type="application/javascript">
|
<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) {
|
function sendButtonSignal(buttonCode) {
|
||||||
fetch('/sendSignal', {
|
fetch('/sendSignal', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -276,7 +265,7 @@ unsigned long timeDelay = 5000;
|
|||||||
|
|
||||||
#define IR_RECEIVE_PIN 2
|
#define IR_RECEIVE_PIN 2
|
||||||
#define IR_TRANSMIT_PIN 3
|
#define IR_TRANSMIT_PIN 3
|
||||||
#define LED 7
|
#define LED 4
|
||||||
#include <IRremote.hpp> // include the library
|
#include <IRremote.hpp> // include the library
|
||||||
|
|
||||||
#define DELAY_AFTER_SEND 1000
|
#define DELAY_AFTER_SEND 1000
|
||||||
|
|||||||
Reference in New Issue
Block a user