5#ifndef ELEC_C7222_DEVICES_LED_H_
6#define ELEC_C7222_DEVICES_LED_H_
49 explicit Led(uint32_t pin,
50 bool initial_on =
false,
52 bool active_low =
false);
73 bool active_low =
false);
99 bool _active_low{
false};
GPIO output-only wrapper with output configuration and drive strength.
Definition gpio.hpp:245
Output-only GPIO wrapper intended for LEDs.
Definition led.hpp:39
void Off()
Turn the LED off.
void Set(bool on)
Set the LED state.
void Toggle()
Toggle the LED state.
void Configure(const Config &config)=delete
Disallow generic reconfiguration.
void Reconfigure(bool initial_on=false, GpioDriveStrength drive=GpioDriveStrength::mA4, bool active_low=false)
Reconfigure LED output settings.
Led(uint32_t pin, bool initial_on=false, GpioDriveStrength drive=GpioDriveStrength::mA4, bool active_low=false)
Construct an LED output pin.
void On()
Turn the LED on.
GPIO abstraction split into explicit input and output classes.
C7222 course abstractions namespace.
Definition ble.hpp:20
GpioDriveStrength
GPIO drive strength.
Definition gpio.hpp:83
Configuration structure for output GPIO setup.
Definition gpio.hpp:250