-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplay.h
55 lines (35 loc) · 912 Bytes
/
Display.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef Display_h
#define Display_h
#include <SoftwareSerial.h>
#include <Arduino.h>
#include "Note.h"
class SoftwareSerial;
class Display {
public:
String noteNames[12] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"};
Display(int tx);
void printNote(Note* note);
void clearDisplay();
void incrementScreen();
void decrementScreen();
int getScreen();
int getSongNum();
void setNumSongs(int num);
int getNumSongs();
void incrementSongs();
void decrementSongs();
void setRecording(bool input);
void setSongScreen(bool input);
void writeScreen();
void moveCursor(int horiz, boolean firstLine);
SoftwareSerial lcd;
private:
int _screenNum;
int _songNum;
int _maxSongs;
int _maxScreens;
bool _recording;
bool _viewingSongs;
void backspace();
};
#endif