|
Haptic Controller
|
Go to the source code of this file.
Classes | |
| struct | Color |
| Color struct for RGB values. More... | |
Functions | |
| void | setColor (int idx, Color color) |
| Sets the color for the data board LEDs using color struct. | |
| void | setColor (int idx, bool r, bool g, bool b) |
| Sets the color for the data board LEDs using rgb values. | |
| void | ledSetup () |
| Sets the pins for the LEDs as output. | |
Variables | |
| Color | red = Color{1, 0, 0} |
| Color | green = Color{0, 1, 0} |
| Color | blue = Color{0, 0, 1} |
| Color | yellow = Color{1, 1, 0} |
| Color | cyan = Color{0, 1, 1} |
| Color | magneta = Color{1, 0, 1} |
| Color | white = Color{1, 1, 1} |
| Color | off = Color{0, 0, 0} |
| void ledSetup | ( | ) |
| void setColor | ( | int | idx, |
| bool | r, | ||
| bool | g, | ||
| bool | b ) |
| void setColor | ( | int | idx, |
| Color | color ) |
Definition at line 21 of file led.hpp.
Referenced by ledUpdate().
Definition at line 23 of file led.hpp.
Referenced by ledUpdate().
Definition at line 20 of file led.hpp.
Referenced by ledUpdate().
Definition at line 24 of file led.hpp.
Referenced by ledUpdate().
Definition at line 19 of file led.hpp.
Referenced by ledUpdate().
Definition at line 22 of file led.hpp.
Referenced by ledUpdate().