Skip to content

Commit b0c6670

Browse files
committed
clang and doxygen
1 parent f4161e3 commit b0c6670

File tree

5 files changed

+85
-18
lines changed

5 files changed

+85
-18
lines changed

src/components/display/assets/icons.h

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,73 @@
1+
/*!
2+
* @file src/components/display/assets/icons.h
3+
*
4+
* Icon assets for displays.
5+
*
6+
* Adafruit invests time and resources providing this open source code,
7+
* please support Adafruit and open-source hardware by purchasing
8+
* products from Adafruit!
9+
*
10+
* Copyright (c) Brent Rubell 2025 for Adafruit Industries.
11+
*
12+
* BSD license, all text here must be included in any redistribution.
13+
*
14+
*/
115
#ifndef _ICONS_H_
216
#define _ICONS_H_
317
#include <Arduino.h>
418

5-
const unsigned char epd_bmp_cloud_online[] PROGMEM = {
6-
// 'cloud-thin-full, 16x16px
19+
/**
20+
* @brief cloud-thin-full icon from FontAwesome (16x16px)
21+
*/
22+
const unsigned char epd_bmp_cloud_online[] = {
723
0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x0d, 0xc0, 0x18, 0x78, 0x10,
824
0x0c, 0x30, 0x04, 0x70, 0x0c, 0xc0, 0x06, 0xc0, 0x03, 0xc0, 0x03,
925
0x40, 0x03, 0x70, 0x06, 0x3f, 0xfc, 0x00, 0x00, 0x00, 0x00};
1026

27+
/**
28+
* @brief cloud-xmark-thin-full icon from FontAwesome (16x16px)
29+
*/
1130
const unsigned char epd_bmp_cloud_offline[] PROGMEM = {
12-
// 'cloud-xmark-thin-full, 16x16px
1331
0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x0d, 0xc0, 0x18, 0x78, 0x10,
1432
0x0c, 0x30, 0x04, 0x73, 0xcc, 0xe3, 0x86, 0xc3, 0xc3, 0xc3, 0xc3,
1533
0x40, 0x03, 0x70, 0x06, 0x3f, 0xfc, 0x00, 0x00, 0x00, 0x00};
1634

17-
const unsigned char epd_bmp_wifi_full[] PROGMEM = {
18-
// 'wifi-thin-full, 16x16px
35+
/**
36+
* @brief wifi-thin-full icon from FontAwesome (16x16px)
37+
*/
38+
const unsigned char epd_bmp_wifi_full[] = {
1939
0x00, 0x00, 0x00, 0x00, 0x07, 0xe0, 0x3c, 0x3c, 0x70, 0x0e, 0xc0,
2040
0x03, 0x03, 0xc0, 0x0f, 0xf0, 0x1c, 0x38, 0x18, 0x18, 0x00, 0x00,
2141
0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00};
2242

23-
const unsigned char epd_bmp_wifi_fair[] PROGMEM = {
24-
// 'wifi-fair-thin-full, 16x16px
43+
/**
44+
* @brief wifi-fair-thin-full icon from FontAwesome (16x16px)
45+
*/
46+
const unsigned char epd_bmp_wifi_fair[] = {
2547
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2648
0x00, 0x03, 0xc0, 0x0f, 0xf0, 0x1c, 0x38, 0x18, 0x18, 0x00, 0x00,
2749
0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00};
2850

29-
const unsigned char epd_bmp_wifi_weak[] PROGMEM = {
30-
// 'wifi-weak-thin-full, 16x16px
51+
/**
52+
* @brief wifi-weak-thin-full icon from FontAwesome (16x16px)
53+
*/
54+
const unsigned char epd_bmp_wifi_weak[] = {
3155
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
3256
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
3357
0x03, 0xc0, 0x03, 0xc0, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00};
3458

35-
const unsigned char epd_bmp_wifi_no_signal[] PROGMEM = {
36-
// 'wifi-slash-thin-full, 16x16px
59+
/**
60+
* @brief wifi-slash-thin-full icon from FontAwesome (16x16px)
61+
*/
62+
const unsigned char epd_bmp_wifi_no_signal[] = {
3763
0x00, 0x00, 0x40, 0x00, 0x27, 0xc0, 0x1e, 0x38, 0x68, 0x00, 0x44,
3864
0x03, 0x03, 0x00, 0x01, 0xe0, 0x08, 0x90, 0x00, 0x40, 0x00, 0x20,
3965
0x01, 0x90, 0x03, 0x88, 0x01, 0x84, 0x00, 0x02, 0x00, 0x00};
4066

41-
const unsigned char epd_bmp_bat_full[] PROGMEM = {
42-
// 'battery-full-thin-full, 16x16px
67+
/**
68+
* @brief battery-full-thin-full icon from FontAwesome (16x16px)
69+
*/
70+
const unsigned char epd_bmp_bat_full[] = {
4371
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0xc0, 0x06, 0xff,
4472
0xfa, 0xf0, 0x0b, 0xf0, 0x0b, 0xf0, 0x0b, 0xf0, 0x0b, 0xff, 0xfa,
4573
0xc0, 0x06, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

src/components/display/assets/splash.h

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1+
/*!
2+
* @file src/components/display/assets/splash.h
3+
*
4+
* Splash screen assets for displays.
5+
*
6+
* Adafruit invests time and resources providing this open source code,
7+
* please support Adafruit and open-source hardware by purchasing
8+
* products from Adafruit!
9+
*
10+
* Copyright (c) Brent Rubell 2025 for Adafruit Industries.
11+
*
12+
* BSD license, all text here must be included in any redistribution.
13+
*
14+
*/
115
#ifndef _SPLASH_H_
216
#define _SPLASH_H_
317
#include <Arduino.h>
418

5-
const unsigned char tft_bmp_logo_240135[] PROGMEM = {
6-
// 'adafruit_wippersnapper_logo, 240x135px
19+
/**
20+
* @brief Wippersnapper logo, 296x128px
21+
*/
22+
const unsigned char tft_bmp_logo_240135[] = {
723
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
824
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
925
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -343,9 +359,10 @@ const unsigned char tft_bmp_logo_240135[] PROGMEM = {
343359
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
344360
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
345361

346-
// 'adafruit_wippersnapper_logo', 240x240px
362+
/**
363+
* @brief Wippersnapper logo, 240x240px
364+
*/
347365
const unsigned char tft_bmp_logo_240240[] PROGMEM = {
348-
// 'adafruit_wippersnapper_logo, 240x240px
349366
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
350367
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
351368
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

src/components/display/drivers/dispDrvSt7789.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ class dispDrvSt7789 : public dispDrvBase {
120120

121121
/*!
122122
@brief Draws a status bar at the top of the display.
123+
@param io_username
124+
The Adafruit IO username to display on the status bar.
123125
*/
124126
virtual void drawStatusBar(const char *io_username) override {
125127
if (!_display)

src/components/display/drivers/dispDrvThinkInkGrayscale4Eaamfgn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
9696

9797
/*!
9898
@brief Draws a status bar at the top of the display.
99+
@param io_username
100+
The Adafruit IO username to display on the status bar.
99101
*/
100102
virtual void drawStatusBar(const char *io_username) override {
101103
if (!_display)

src/components/display/hardware.cpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ wippersnapper_display_v1_DisplayType DisplayHardware::getType() {
152152
}
153153

154154
/*!
155-
@brief Parses a pin string (e.g., "D5") and returns the corresponding pin
155+
@brief Parses a pin string (e.g., "D5") and returns the corresponding pin
156156
number.
157157
@param pinStr
158158
The pin string to parse.
@@ -250,18 +250,36 @@ bool DisplayHardware::beginEPD(
250250
return true;
251251
}
252252

253+
/*!
254+
@brief Displays the splash screen on the display.
255+
*/
253256
void DisplayHardware::showSplash() {
254257
if (!_drvDisp)
255258
return;
256259
_drvDisp->showSplash();
257260
}
258261

262+
/*!
263+
@brief Draws a status bar at the top of the display.
264+
@param io_username
265+
The Adafruit IO username to display on the status bar.
266+
*/
259267
void DisplayHardware::drawStatusBar(const char *io_username) {
260268
if (!_drvDisp)
261269
return;
262270
_drvDisp->drawStatusBar(io_username);
263271
}
264272

273+
/*!
274+
@brief Updates the status bar with the latest RSSI, battery, and MQTT
275+
connection status.
276+
@param rssi
277+
The current WiFi RSSI value.
278+
@param bat
279+
The current battery percentage (0-100).
280+
@param mqtt_connected
281+
True if connected to MQTT, False otherwise.
282+
*/
265283
void DisplayHardware::updateStatusBar(int8_t rssi, uint8_t bat,
266284
bool mqtt_connected) {
267285
if (!_drvDisp)

0 commit comments

Comments
 (0)