huesmith 0.1.0

Hue-compatible Zigbee light library for ESP32-C6/H2 (ESP-IDF)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! On/off light — a single GPIO switched high (on) or low (off), no dimming or
//! color. The Hue Bridge sees an on/off light with no level control.
//!
//! Wiring: an LED load (via a driver appropriate to its current) on GPIO_SWITCH.
//! Add `.inverted()` if the GPIO sinks current from the load's cathode directly.
//!
//! Reference code, not standalone firmware — see `examples/README.md`.

fn main() {
    const GPIO_SWITCH: u8 = 19;

    huesmith::on_off(GPIO_SWITCH).launch();
}