// Definície k LED pásu
#define NUM_LEDS 42
#define LED_PIN 2
const int segmentPins[] = { 14, 27, 26, 25, 33, 32 };
int segmentRanges[][2] = { { 1, 7 }, { 8, 14 }, { 15, 21 }, { 22, 28 }, { 29, 35 }, { 36, 42 } };
bool polarity[] = { false, false, false, false, false, false };
bool monitorPin14 = false;
int lastPin14State = LOW;
void setup() {
pinMode(14, INPUT);
Serial.begin(9600);
}
void loop() {
int currentPin14State = digitalRead(14);
Serial.println(currentPin14State);
if (currentPin14State != lastPin14State) {
if (currentPin14State == LOW) {
sendHTTPRequest(); // Call function to send HTTP request
}
lastPin14State = currentPin14State;
}
}
void sendHTTPRequest() {
Serial.println("Sending HTTP req");
}