An LedDriver implemented using plain digital output pins
More...
|
| double | brightness |
| | The internally-referenced global brightness of the LED driver More...
|
| |
|
| bool | AutoFlush = true [get, set] |
| | Gets or sets whether the display should auto-flush whenever an LED state is changed More...
|
| |
| bool | HasGlobalBrightnessControl [get, protected set] |
| | Gets or sets whether this controller supports global brightness control. More...
|
| |
| bool | HasIndividualBrightnessControl [get] |
| | Gets or sets whether this controller's LEDs have individual brightness control (through PWM or otherwise). More...
|
| |
| double | Brightness [get, set] |
| | The global brightness, from 0.0-1.0, of the LEDs attached to this driver More...
|
| |
| IList< Led > | Leds = new Collection<Led>() [get, set] |
| | The collection of LEDs that belong to this driver. More...
|
| |
| IFlushable | Parent [get, protected set] |
| | Gets the parent device of this LED driver More...
|
| |
An LedDriver implemented using plain digital output pins
- Template Parameters
-
| TPwm | The Pwm-implementing type that should be used. |
◆ PwmLedDriver()
Construct a new LedDriver using a collection of GPIO output pins
- Parameters
-
| Pins | The list of digital output pins to use |
| useActiveLowOutput | Whether a digital LOW value should be used to turn the LED on |
| controller | An IFlushable controller where the GPIO resides |
◆ FlushAsync()
| override async Task FlushAsync |
( |
bool |
force = false | ) |
|
|
virtual |
Flush the data from LED driver to the GPIO bus
- Parameters
-
| force | Whether all data should be flushed, even if it doesn't appear to have changed from the current value |
- Returns
- An awaitable task that completes upon success
Implements LedDriver.
◆ Clear()
Clear the display
- Returns
- An awaitable task that completes when the display is cleared
Implements ILedDriver.
◆ brightness
The internally-referenced global brightness of the LED driver
◆ AutoFlush
Gets or sets whether the display should auto-flush whenever an LED state is changed
◆ HasGlobalBrightnessControl
| bool HasGlobalBrightnessControl |
|
getprotected setinherited |
Gets or sets whether this controller supports global brightness control.
◆ HasIndividualBrightnessControl
| bool HasIndividualBrightnessControl |
|
getinherited |
Gets or sets whether this controller's LEDs have individual brightness control (through PWM or otherwise).
◆ Brightness
The global brightness, from 0.0-1.0, of the LEDs attached to this driver
◆ Leds
| IList<Led> Leds = new Collection<Led>() |
|
getsetinherited |
The collection of LEDs that belong to this driver.
◆ Parent
|
|
getprotected setinherited |
Gets the parent device of this LED driver
The documentation for this class was generated from the following file:
- F:/Git/treehopper-sdk/NET/API/Treehopper.Libraries/Displays/PwmLedDriver.cs