|
@@ -77,18 +77,19 @@ class LoL {
|
77
|
77
|
* Gets a pixel at specified coordinates
|
78
|
78
|
* @param x Coordinate x
|
79
|
79
|
* @param y Coordinate y
|
80
|
|
- * @return 1 if the pixel is on, 0 if off, -1 on error
|
|
80
|
+ * @return true if the pixel is on, false if off
|
|
81
|
+ * @throws std::invalid_argument if pixel is out of bounds
|
81
|
82
|
*/
|
82
|
|
- unsigned char getPixel(int x, int y);
|
|
83
|
+ bool getPixel(int x, int y);
|
83
|
84
|
|
84
|
85
|
/**
|
85
|
86
|
* Sets a pixel at specified coordinates
|
86
|
87
|
* @param x Coordinate x
|
87
|
88
|
* @param y Coordinate y
|
88
|
|
- * @param pixel 0 is off, 1 is on
|
89
|
|
- * @return 0 if successful, -1 on error
|
|
89
|
+ * @param pixel false is off, true is on
|
|
90
|
+ * @throws std::invalid_argument if pixel is out of bounds
|
90
|
91
|
*/
|
91
|
|
- unsigned char setPixel(int x, int y, unsigned char pixel);
|
|
92
|
+ void setPixel(int x, int y, bool pixel);
|
92
|
93
|
|
93
|
94
|
private:
|
94
|
95
|
mraa_gpio_context m_LoLCtx[14];
|