|
17 | 17 |
|
18 | 18 | #include "AdafruitIO_Block.h" |
19 | 19 |
|
| 20 | +/**************************************************************************/ |
| 21 | +/*! |
| 22 | + @brief Class for interacting with the Adafruit IO Dashboard |
| 23 | + Color Block. |
| 24 | +*/ |
| 25 | +/**************************************************************************/ |
20 | 26 | class ColorBlock : public AdafruitIO_Block { |
21 | 27 |
|
22 | 28 | public: |
23 | 29 | ColorBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f) |
24 | 30 | : AdafruitIO_Block(d, f) {} |
25 | 31 | ~ColorBlock() {} |
26 | 32 |
|
27 | | - int width = 4; |
28 | | - int height = 4; |
| 33 | + int width = 4; /*!< Dashboard block width. */ |
| 34 | + int height = 4; /*!< Dashboard block height. */ |
29 | 35 |
|
| 36 | + /******************************************/ |
| 37 | + /*! |
| 38 | + @brief Returns block type |
| 39 | + @return Block type. |
| 40 | + */ |
| 41 | + /******************************************/ |
30 | 42 | const char *type() { return _visual_type; } |
31 | 43 |
|
32 | 44 | protected: |
33 | | - const char *_visual_type = "color_picker"; |
| 45 | + const char *_visual_type = "color_picker"; /*!< Block type. */ |
34 | 46 |
|
| 47 | + /******************************************/ |
| 48 | + /*! |
| 49 | + @brief Returns width of block. |
| 50 | + @return Block width. |
| 51 | + */ |
| 52 | + /******************************************/ |
35 | 53 | int _width() { return width; } |
| 54 | + |
| 55 | + /******************************************/ |
| 56 | + /*! |
| 57 | + @brief Returns height of block. |
| 58 | + @return Block height. |
| 59 | + */ |
| 60 | + /******************************************/ |
36 | 61 | 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 | + /******************************************/ |
37 | 70 | 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 | + /******************************************/ |
38 | 79 | int _column() { return column; } |
39 | 80 | }; |
40 | 81 |
|
|
0 commit comments