-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDashboard.h
36 lines (33 loc) · 889 Bytes
/
Dashboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <Arduino.h>
#include "vector.cpp"
#include "controller.h"
class Dashboard{
private:
static Vector<Controller> controllers;
static String dashMessage;
static bool isMessage;
static char nextChar;
static int controllerIndex;
static int axisIndex;
static int buttonIndex;
static int POVIndex;
static float newVal;
static String message;
static bool logging;
Dashboard();
public:
/**
* Opens communication between dashboard program and arduino
*/
static void begin();
static Controller& getController(int ID);
static void startLogging();
static void stopLogging();
static String getMessage();
static void clearMessage();
static void println(String toPrint);
/**
* Updates controller data sent by dashboard. Must be called within loop().
*/
static void updateData();
};