46 u32 risingTime = 1000,
47 u32 fallingTime = 1000,
48 const char* button_name =
nullptr);
void activate(u32 now)
Manually start the latch cycle (e.g. on startup)
bool detect(u32 now)
Returns true if the PIR is “latched on” (within latchMs of last trigger).
u8 transition(u32 now)
Returns a 0–255 ramp value: • ramps 0→255 over risingTime • holds 255 until latchMs–fallingTime • ram...
Pir(int pin, u32 latchMs=5000, u32 risingTime=1000, u32 fallingTime=1000, const char *button_name=nullptr)
Base definition for an LED controller.
Aggregator header for the fl/ui/ family of per-element UI types.