Interfaçage NeoPixel Ring 12, LPRO MECSE, Arnaud A.
Diff: button.h
- Revision:
- 5:c4038609e806
- Parent:
- 4:b4c30f6f526e
- Child:
- 7:ca859a221807
--- a/button.h Mon Jun 15 03:21:35 2020 +0000 +++ b/button.h Wed Jun 17 14:05:32 2020 +0000 @@ -5,7 +5,7 @@ { public: - Button(int x = 50, int y = 50, int width = 50, int height = 30, uint32_t bgColor = LCD_COLOR_LIGHTGRAY, uint32_t borderWidth = 1); + Button(int x = 50, int y = 50, int width = 50, int height = 30, uint32_t bgColor = LCD_COLOR_LIGHTGRAY, uint32_t borderColor=LCD_COLOR_GRAY, uint32_t borderWidth=1); void setText(const char *str, uint32_t textColor = LCD_COLOR_BLACK); bool contain(int x, int y); void draw();