We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4d857 commit 04e4a57Copy full SHA for 04e4a57
src/Braccio++.h
@@ -87,12 +87,13 @@ class BraccioClass
87
void motorConnectedThreadFunc();
88
89
90
- const int BTN_LEFT = 3;
91
- const int BTN_RIGHT = 4;
92
- const int BTN_UP = 5;
93
- const int BTN_DOWN = 2;
94
- const int BTN_SEL = A0;
95
- const int BTN_ENTER = A1;
+ static int constexpr BTN_LEFT = 3;
+ static int constexpr BTN_RIGHT = 4;
+ static int constexpr BTN_UP = 5;
+ static int constexpr BTN_DOWN = 2;
+ static int constexpr BTN_SEL = A0;
+ static int constexpr BTN_ENTER = A1;
96
+
97
98
static size_t constexpr LVGL_DRAW_BUFFER_SIZE = 240 * 240 / 10;
99
0 commit comments