FastLED
3.9.3
Loading...
Searching...
No Matches
pir.h
1
#pragma once
2
3
#include <Arduino.h>
4
#include <stdint.h>
5
6
#include "ui.h"
7
8
class
Pir
{
9
public
:
10
Pir
(
int
pin) : pin(pin) { pinMode(pin, INPUT); }
11
bool
detect() {
12
return
digitalRead(pin) == HIGH || detectMotion.clicked();
13
}
14
15
private
:
16
Button
detectMotion =
Button
(
"Detect Motion"
);
17
int
pin;
18
};
Button
Definition
ui.h:70
Pir
Definition
pir.h:8
examples
NoiseRing
pir.h
Generated on Thu Nov 14 2024 00:00:34 for FastLED by
1.11.0