28
28
#define LED_MAX_CHARS \
29
29
4 // /< Maximum number of characters to display on the alphanumeric display
30
30
31
-
32
31
/* !
33
32
@brief Class that provides a driver interface for Quad Alphanumeric
34
33
Displays w/I2C Backpack
35
34
*/
36
- class WipperSnapper_I2C_Driver_Out_QuadAlphaNum : public WipperSnapper_I2C_Driver_Out {
35
+ class WipperSnapper_I2C_Driver_Out_QuadAlphaNum
36
+ : public WipperSnapper_I2C_Driver_Out {
37
37
38
38
public:
39
39
/* ******************************************************************************/
@@ -45,20 +45,22 @@ class WipperSnapper_I2C_Driver_Out_QuadAlphaNum : public WipperSnapper_I2C_Drive
45
45
7-bit device address.
46
46
*/
47
47
/* ******************************************************************************/
48
- WipperSnapper_I2C_Driver_Out_QuadAlphaNum (TwoWire *i2c, uint16_t sensorAddress) : WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
48
+ WipperSnapper_I2C_Driver_Out_QuadAlphaNum (TwoWire *i2c,
49
+ uint16_t sensorAddress)
50
+ : WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
49
51
_i2c = i2c;
50
52
_sensorAddress = sensorAddress;
51
53
}
52
54
53
55
/* !
54
56
@brief Destructor for an MS8607 sensor.
55
57
*/
56
- ~WipperSnapper_I2C_Driver_Out_QuadAlphaNum () {
58
+ ~WipperSnapper_I2C_Driver_Out_QuadAlphaNum () {
57
59
if (_alpha4 != nullptr ) {
58
60
delete _alpha4;
59
61
_alpha4 = nullptr ;
60
62
}
61
- }
63
+ }
62
64
63
65
/* !
64
66
@brief Initializes the drvOutQuadAlphaNum component and begins I2C.
@@ -180,10 +182,13 @@ class WipperSnapper_I2C_Driver_Out_QuadAlphaNum : public WipperSnapper_I2C_Drive
180
182
}
181
183
182
184
protected:
183
- Adafruit_AlphaNum4 *_alpha4 = nullptr ; // /< ptr to a 4-digit alphanumeric display object
185
+ Adafruit_AlphaNum4 *_alpha4 =
186
+ nullptr ; // /< ptr to a 4-digit alphanumeric display object
184
187
int32_t _brightness; // /< Brightness of the LED backpack, from 0 (off) to 15
185
188
// /< (full brightness)
186
- uint32_t _alignment = LED_BACKPACK_ALIGNMENT_DEFAULT; // /< Determines L/R alignment of the message displayed
189
+ uint32_t _alignment =
190
+ LED_BACKPACK_ALIGNMENT_DEFAULT; // /< Determines L/R alignment of the
191
+ // /< message displayed
187
192
};
188
193
189
194
#endif // WIPPERSNAPPER_I2C_DRIVER_OUT_QUADALPHANUM_H
0 commit comments