Skip to content

Commit 0332f85

Browse files
author
brentru
committed
doxy chartblock,colorblock,sliderblock
1 parent 0da77fe commit 0332f85

3 files changed

Lines changed: 56 additions & 9 deletions

File tree

src/blocks/ChartBlock.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
#include "AdafruitIO_Block.h"
1919

20+
/**************************************************************************/
21+
/*!
22+
@brief Class for interacting with the Adafruit IO Dashboard
23+
Chart Block.
24+
*/
25+
/**************************************************************************/
2026
class ChartBlock : public AdafruitIO_Block {
2127

2228
public:

src/blocks/ColorBlock.h

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,65 @@
1717

1818
#include "AdafruitIO_Block.h"
1919

20+
/**************************************************************************/
21+
/*!
22+
@brief Class for interacting with the Adafruit IO Dashboard
23+
Color Block.
24+
*/
25+
/**************************************************************************/
2026
class ColorBlock : public AdafruitIO_Block {
2127

2228
public:
2329
ColorBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f)
2430
: AdafruitIO_Block(d, f) {}
2531
~ColorBlock() {}
2632

27-
int width = 4;
28-
int height = 4;
33+
int width = 4; /*!< Dashboard block width. */
34+
int height = 4; /*!< Dashboard block height. */
2935

36+
/******************************************/
37+
/*!
38+
@brief Returns block type
39+
@return Block type.
40+
*/
41+
/******************************************/
3042
const char *type() { return _visual_type; }
3143

3244
protected:
33-
const char *_visual_type = "color_picker";
45+
const char *_visual_type = "color_picker"; /*!< Block type. */
3446

47+
/******************************************/
48+
/*!
49+
@brief Returns width of block.
50+
@return Block width.
51+
*/
52+
/******************************************/
3553
int _width() { return width; }
54+
55+
/******************************************/
56+
/*!
57+
@brief Returns height of block.
58+
@return Block height.
59+
*/
60+
/******************************************/
3661
int _height() { return height; }
62+
63+
/******************************************/
64+
/*!
65+
@brief Returns block's row location
66+
on an Adafruit IO dashboard.
67+
@return Adafruit IO dashboard row.
68+
*/
69+
/******************************************/
3770
int _row() { return row; }
71+
72+
/******************************************/
73+
/*!
74+
@brief Returns block's column location
75+
on an Adafruit IO dashboard.
76+
@return Adafruit IO dashboard column
77+
*/
78+
/******************************************/
3879
int _column() { return column; }
3980
};
4081

src/blocks/SliderBlock.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class SliderBlock : public AdafruitIO_Block {
2929
SliderBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f);
3030
~SliderBlock();
3131

32-
int min; /*!< Minimum slider data value. */
33-
int max; /*!< Maximum slider data value. */
34-
int step; /*!< Slider data step value. */
35-
const char *label; /*!< Slider title. */
32+
int min; /*!< Minimum slider data value. */
33+
int max; /*!< Maximum slider data value. */
34+
int step; /*!< Slider data step value. */
35+
const char *label; /*!< Slider title. */
3636

37-
int width = 4; /*!< Dashboard block width. */
38-
int height = 2; /*!< Dashboard block height. */
37+
int width = 4; /*!< Dashboard block width. */
38+
int height = 2; /*!< Dashboard block height. */
3939

4040
String properties();
4141

0 commit comments

Comments
 (0)