Helper structure for the charlieplexing implementation.
More...
#include <Charlieplex.hxx>
|
| static constexpr unsigned | num_bits () |
| |
| static unsigned | pin_high (unsigned bit) |
| | Which pin to drive high for a given LED.
|
| |
| static unsigned | pin_low (unsigned bit) |
| | Which pin to drive low for a given LED.
|
| |
|
| static const uint8_t | pinlist [] |
| | Flattened list of pars of output pin numbers to use for a given LED.
|
| |
Helper structure for the charlieplexing implementation.
Definition at line 78 of file Charlieplex.hxx.
◆ num_bits()
◆ pin_high()
Which pin to drive high for a given LED.
- Parameters
-
| bit | is the number of the LED, from 0..num_bits()-1. |
- Returns
- index of the GPIO to drive high.
Definition at line 90 of file Charlieplex.hxx.
◆ pin_low()
Which pin to drive low for a given LED.
- Parameters
-
| bit | is the number of the LED, from 0..num_bits()-1. |
- Returns
- index of the GPIO to drive low.
Definition at line 96 of file Charlieplex.hxx.
◆ pinlist
Initial value:= {
3, 0,
2, 0,
1, 0,
3, 1,
3, 2,
2, 1,
2, 3,
1, 2,
0, 2,
0, 3,
0, 1,
1, 3,
}
Flattened list of pars of output pin numbers to use for a given LED.
Definition at line 102 of file Charlieplex.hxx.
The documentation for this struct was generated from the following file: