Skip to content

Class LedHAL

ClassList > LedHAL

Public Functions

Type Name
void toggle ()
Toggle the LED state.
void turnOff ()
Turn the LED off.
void turnOn ()
Turn the LED on.

Public Functions Documentation

function toggle

Toggle the LED state.

void LedHAL::toggle () 

Changes the LED state from on to off or vice versa.

Performs lazy initialization if not already done.


function turnOff

Turn the LED off.

void LedHAL::turnOff () 

Ensures the LED is initialized, then sets the output state to inactive.


function turnOn

Turn the LED on.

void LedHAL::turnOn () 

Ensures the LED is initialized, then sets the output state to active.



The documentation for this class was generated from the following file docs/core/zephyr/modules/owntech_spin_api/zephyr/src/LedHAL.h