File tree Expand file tree Collapse file tree 4 files changed +24
-14
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 4 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 25
25
#include < Adafruit_LEDBackpack.h>
26
26
#include < Arduino.h>
27
27
28
- #define LED_BACKPACK_ALIGNMENT_UNSPECIFIED 0
29
- #define LED_BACKPACK_ALIGNMENT_LEFT 1
30
- #define LED_BACKPACK_ALIGNMENT_RIGHT 2
31
- #define LED_BACKPACK_ALIGNMENT_DEFAULT LED_BACKPACK_ALIGNMENT_LEFT
32
- #define LED_MAX_CHARS 4
28
+ #define LED_BACKPACK_ALIGNMENT_UNSPECIFIED 0 // /< Unspecified alignment
29
+ #define LED_BACKPACK_ALIGNMENT_LEFT 1 // /< Left alignment
30
+ #define LED_BACKPACK_ALIGNMENT_RIGHT 2 // /< Right alignment
31
+ #define LED_BACKPACK_ALIGNMENT_DEFAULT \
32
+ LED_BACKPACK_ALIGNMENT_LEFT // /< Default alignment
33
+ #define LED_MAX_CHARS \
34
+ 4 // /< Maximum number of characters to display on the 7-segment display
33
35
34
36
/* !
35
37
@brief Class that provides a driver for an Adafruit 7-Segment LED matrix
Original file line number Diff line number Diff line change @@ -69,8 +69,12 @@ class drvOutCharLcd : public drvOutputBase {
69
69
/* !
70
70
@brief Writes a message to the LCD.
71
71
@note MUST be called prior to begin() to configure the LCD's size
72
- @param message
73
- The message to be displayed.
72
+ @param rows
73
+ The number of rows in the LCD.
74
+ @param cols
75
+ The number of columns in the LCD.
76
+ @param enable_backlight
77
+ True if the backlight is enabled, False otherwise.
74
78
*/
75
79
void ConfigureCharLcd (uint8_t rows, uint8_t cols, bool enable_backlight) {
76
80
_rows = rows;
Original file line number Diff line number Diff line change 1
1
/* !
2
- * @file drvQuadAlphaNum .h
2
+ * @file drvOutQuadAlphaNum .h
3
3
*
4
4
* Device driver for Quad Alphanumeric Displays w/I2C Backpack
5
5
*
20
20
#include < Adafruit_LEDBackpack.h>
21
21
#include < Arduino.h>
22
22
23
- #define LED_BACKPACK_ALIGNMENT_UNSPECIFIED 0
24
- #define LED_BACKPACK_ALIGNMENT_LEFT 1
25
- #define LED_BACKPACK_ALIGNMENT_RIGHT 2
26
- #define LED_BACKPACK_ALIGNMENT_DEFAULT LED_BACKPACK_ALIGNMENT_LEFT
27
- #define LED_MAX_CHARS 4
23
+ #define LED_BACKPACK_ALIGNMENT_UNSPECIFIED 0 // /< Unspecified alignment
24
+ #define LED_BACKPACK_ALIGNMENT_LEFT 1 // /< Left alignment
25
+ #define LED_BACKPACK_ALIGNMENT_RIGHT 2 // /< Right alignment
26
+ #define LED_BACKPACK_ALIGNMENT_DEFAULT \
27
+ LED_BACKPACK_ALIGNMENT_LEFT // /< Default alignment
28
+ #define LED_MAX_CHARS \
29
+ 4 // /< Maximum number of characters to display on the alphanumeric display
28
30
29
31
/* !
30
32
@brief Class that provides a driver interface for Quad Alphanumeric
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ class drvOutputBase : public drvBase {
50
50
51
51
/* !
52
52
@brief Initializes the I2C output device and begins I2C.
53
- @returns True if initialized successfully, False otherwise.
53
+ @param message
54
+ The message to be displayed.
54
55
*/
55
56
virtual void WriteMessage (const char *message) {
56
57
// noop
@@ -105,6 +106,7 @@ class drvOutputBase : public drvBase {
105
106
@brief Writes a message to the LCD.
106
107
@param write_char_lcd
107
108
Pointer to a wippersnapper_i2c_output_CharLCDWrite message.
109
+ @returns True if the message was written successfully, False otherwise.
108
110
*/
109
111
bool
110
112
WriteMessageCharLCD (wippersnapper_i2c_output_CharLCDWrite *write_char_lcd) {
You can’t perform that action at this time.
0 commit comments