-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_dd_misc.h
More file actions
33 lines (25 loc) · 763 Bytes
/
_dd_misc.h
File metadata and controls
33 lines (25 loc) · 763 Bytes
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
#ifndef _dd_misc_h
#define _dd_misc_h
const String DDEmptyString = String();
/// check if dumbdisplay is connected
bool DDConnected();
/// the same usage as standard delay(), but it gives DD a chance to handle "feedbacks"
void DDDelay(unsigned long ms);
/// give DD a chance to handle "feedbacks"
void DDYield();
/// check whether system is LITTLE_ENDIAN or BIG_ENDIAN
/// @return 0 if LITTLE_ENDIAN; 1 if BIG_ENDIAN
inline int DDCheckEndian() {
int i = 1;
const char* p = (const char*) &i;
if (p[0] == 1)
return 0; // LITTLE_ENDIAN;
else
return 1; // BIG_ENDIAN;
}
#include "__dd_misc_debug.h"
#include "__dd_misc_value.h"
#include "__dd_misc_layout.h"
#include "__dd_misc_layer.h"
#include "__dd_misc_connect.h"
#endif