@@ -23,24 +23,60 @@ class StreamBlock : public AdafruitIO_Block {
2323 StreamBlock (AdafruitIO_Dashboard *d, AdafruitIO_Feed *f);
2424 ~StreamBlock ();
2525
26- const char *fontSize;
27- const char *fontColor;
28- bool showErrors;
29- bool showTimestamp;
30- bool showName;
26+ const char *fontSize; /* !< Block's text font size. */
27+ const char *fontColor; /* !< Block's text font color. */
28+ bool showErrors; /* !< Display Adafruit IO errors . */
29+ bool showTimestamp; /* !< Display timestamp metadata. */
30+ bool showName; /* !< Display value name.. */
3131
32- int width = 6 ;
33- int height = 4 ;
32+ int width = 6 ; /* !< Dashboard block width. */
33+ int height = 4 ; /* !< Dashboard block height. */
3434
3535 String properties ();
36+
37+ /* *****************************************/
38+ /* !
39+ @brief Returns block type
40+ @return Block type.
41+ */
42+ /* *****************************************/
3643 const char *type () { return _visual_type; }
3744
3845protected:
39- const char *_visual_type = " stream" ;
46+ const char *_visual_type = " stream" ; /* !< Block type. */
4047
48+ /* *****************************************/
49+ /* !
50+ @brief Returns width of block.
51+ @return Block width.
52+ */
53+ /* *****************************************/
4154 int _width () { return width; }
55+
56+ /* *****************************************/
57+ /* !
58+ @brief Returns height of block.
59+ @return Block height.
60+ */
61+ /* *****************************************/
4262 int _height () { return height; }
63+
64+ /* *****************************************/
65+ /* !
66+ @brief Returns block's row location
67+ on an Adafruit IO dashboard.
68+ @return Adafruit IO dashboard row.
69+ */
70+ /* *****************************************/
4371 int _row () { return row; }
72+
73+ /* *****************************************/
74+ /* !
75+ @brief Returns block's column location
76+ on an Adafruit IO dashboard.
77+ @return Adafruit IO dashboard column
78+ */
79+ /* *****************************************/
4480 int _column () { return column; }
4581};
4682
0 commit comments