aboutsummaryrefslogtreecommitdiffstats
path: root/source/sharp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/sharp.hpp')
-rw-r--r--source/sharp.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/sharp.hpp b/source/sharp.hpp
index 2775711..3c1d34e 100644
--- a/source/sharp.hpp
+++ b/source/sharp.hpp
@@ -9,12 +9,19 @@
#define BLACK 0
#define WHITE 1
+constexpr int SHARP_WIDTH = 144;
+constexpr int SHARP_HEIGHT = 168;
+
class Sharp {
private:
static Adafruit_SharpMem display;
static TaskHandle_t taskHandle;
static std::vector<Widget *> widgets;
+
+ static int topY;
+ static int scrollVelocity;
+
public:
static void begin(void);
@@ -23,6 +30,12 @@ public:
widgets.emplace_back(new T(args...));
}
+ inline static void setScrollVelocity(int vel) {
+ scrollVelocity = vel;
+ }
+
+ static void sendInput(int ypos);
+
private:
static void updateTask(void *);
};