-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMailApp.h
119 lines (103 loc) · 2.33 KB
/
MailApp.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<<<<<<< HEAD
#ifndef MailApp_h
#define MailApp_h
#include "Arduino.h"
//#include "PrettyPrint.h"
#include "Button.h"
#include <MPU9250.h>
//#include <U8g2lib.h>
#include <math.h>
#include <Wifi_S08_v2.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1351.h>
#define SCREEN Adafruit_SSD1351
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#define sclk 14
#define mosi 11
#define dc 15
#define cs 10
#define rst 16
//SCREEN tft = Adafruit_SSD1351(cs, dc, mosi, sclk, rst);
class Mailapp{
private:
String query_string;
String emails;
String subject;
String email;
String emailsplit [20];
int chunk;
int index;
String alphabet;
elapsedMillis scrolling_timer;
int scrolling_threshold;
float angle_threshold;
public:
int state;
int email_index;
String message;
int char_index;
Mailapp();
String update(float angle, float yangle, int button, ESP8266 &wifi);
void start(ESP8266 &wifi);
void parse(String output, SCREEN &oled);
};
#endif
=======
#ifndef MailApp_h
#define MailApp_h
#include "Arduino.h"
#include "Button.h"
#include <MPU9250.h>
#include <Wifi_S08_v2.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1351.h>
#define SCREEN Adafruit_SSD1351
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#define sclk 14
#define mosi 11
#define dc 15
#define cs 10
#define rst 16
class Mailapp{
private:
String query_string;
String emails;
String subject;
String email;
String emailsplit [20];
int chunk;
int index;
String alphabet;
elapsedMillis scrolling_timer;
int scrolling_threshold;
float angle_threshold;
public:
int state;
int email_index;
String message;
int char_index;
Mailapp();
String update(float angle, float yangle, int button, ESP8266 &wifi, Adafruit_SSD1351 &tft);
void start(ESP8266 &wifi);
void parse(String output, SCREEN &oled);
};
#endif
>>>>>>> bb123b72b72b700011a8109a25cf62be038b5793