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 2525#include < Adafruit_LEDBackpack.h>
2626#include < Arduino.h>
2727
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
3335
3436/* !
3537 @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 {
6969 /* !
7070 @brief Writes a message to the LCD.
7171 @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.
7478 */
7579 void ConfigureCharLcd (uint8_t rows, uint8_t cols, bool enable_backlight) {
7680 _rows = rows;
Original file line number Diff line number Diff line change 11/* !
2- * @file drvQuadAlphaNum .h
2+ * @file drvOutQuadAlphaNum .h
33 *
44 * Device driver for Quad Alphanumeric Displays w/I2C Backpack
55 *
2020#include < Adafruit_LEDBackpack.h>
2121#include < Arduino.h>
2222
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
2830
2931/* !
3032 @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 {
5050
5151 /* !
5252 @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.
5455 */
5556 virtual void WriteMessage (const char *message) {
5657 // noop
@@ -105,6 +106,7 @@ class drvOutputBase : public drvBase {
105106 @brief Writes a message to the LCD.
106107 @param write_char_lcd
107108 Pointer to a wippersnapper_i2c_output_CharLCDWrite message.
109+ @returns True if the message was written successfully, False otherwise.
108110 */
109111 bool
110112 WriteMessageCharLCD (wippersnapper_i2c_output_CharLCDWrite *write_char_lcd) {
You can’t perform that action at this time.
0 commit comments