Helper structure for the charlieplexing implementation.
More...
#include <Charlieplex.hxx>
|
| static 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 44 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 56 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 62 of file Charlieplex.hxx.
◆ pinlist
Initial value:= {
0, 2,
0, 1,
1, 2,
1, 0,
2, 1,
2, 0,
}
Flattened list of pars of output pin numbers to use for a given LED.
Definition at line 68 of file Charlieplex.hxx.
The documentation for this struct was generated from the following file: