Struct qwiic_button_led::ButtonLED[][src]

pub struct ButtonLED<I2C> { /* fields omitted */ }
Expand description

This struct contains all the functions to interface with the Qwiic button LED.

Implementations

Initialize a ButtonLED struct

The button ID is read-only and always returns 0x5D.

The firmware version for this button LED.

Determine the status of this button.

Set the button status, e.g. to clear events

Query the interrupt configuration.

Manipulate the interrupt configuration.

Query the debounce time, a measurement of how long after the button is released that it requires to reset to the default state.

Manipulate the debounce time.

Is the button pressed queue full.

Is the button pressed queue empty.

Query the button pressed queue: empty / full.

The timestamp in milliseconds since the most recent button press in the queue.

The timestamp in milliseconds since the first button press in the queue.

Is the button clicked queue full.

Is the button clicked queue empty.

Query the button pressed queue: empty / full.

The timestamp in milliseconds since the most recent button click in the queue.

The timestamp in milliseconds since the first button click in the queue.

The LED brightness.

Set LED brightness.

The number of steps the LED uses from one brightness setting another when updated.

Set the LED update granularity.

When set, the LED pulses on for this value in milliseconds.

Set the LED pulse on time in milliseconds (0 disables).

The duration in milliseconds the LED is off while pulsing.

Set the LED off time in milliseconds (0 disables).

The address of this button LED.

Set the address of this button LED (0x08 - 0x77).

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.