Prezentace 21, arduino auto.

This commit is contained in:
vojta@alfred
2026-03-24 22:30:08 +01:00
parent 31376ba2d0
commit ab8f486f43
18 changed files with 638 additions and 0 deletions
@@ -0,0 +1,15 @@
#include <IRremote.h>
int RECV_PIN = 12;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}