-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlowdeck_Firmware.ino
More file actions
55 lines (32 loc) · 1.05 KB
/
Glowdeck_Firmware.ino
File metadata and controls
55 lines (32 loc) · 1.05 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Glowdeck_Firmware.ino
// Glowdeck
//
// Created by Justin Kaufman on 8/17/17.
// Copyright © 2017 Justin Kaufman. All rights reserved.
//
#include "GlobalClass.h"
// TO DO: Move these to GlobalClass
#include "FrontButton.h"
#include "LeftButton.h"
#include "RightButton.h"
// MARK: - Globals
Runnable *Runnable::headRunnable = NULL;
FrontButton frontButton (FRONT_BUTTON);
LeftButton leftButton (LEFT_BUTTON);
RightButton rightButton (RIGHT_BUTTON);
GlowdeckManager glowdeckManager ();
BootloaderManager bootloaderManager ();
SerialManager serialManager (&Serial );
WifiManager wifiManager (&Serial1);
BluetoothManager bluetoothManager (&Serial2);
LEDManager ledManager (1);
DisplayManager displayManager (LCD_SCK, LCD_MOSI, LCD_CS, LCD_RST, LCD_DC, LCD_BL);
// MARK: - Setup
void setup() {
Runnable::setupAll();
}
// MARK: - Loop
void loop() {
Runnable::loopAll();
}