forked from neu-rah/ArduinoMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenuDefs.h
More file actions
63 lines (54 loc) · 1.19 KB
/
menuDefs.h
File metadata and controls
63 lines (54 loc) · 1.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -*- C++ -*- */
#pragma once
#include <Arduino.h>
// #define MENU_ASYNC
// #define MENU_FMT_WRAPS
// #define USE_PGM
// #define USE_RAM
// #define MENU_DEBUG
#include "macros.h"
#include "menuBase.h"
#include "shadows.h"
using namespace Menu;
#ifdef MENU_DEBUG
String& operator<<(String&s,prompt &p);
Stream& operator<<(Stream&o,prompt& p);
Print& operator<<(Print&o,prompt& p);
#endif
#if defined(MENU_DEBUG) || defined(MENU_ASYNC)
#ifndef ios_h
#ifndef ARDUINO_STREAMING
//https://github.com/neu-rah/streamFlow
#include <streamFlow.h>
#else
//https://github.com/scottdky/Streaming
#include <Streaming.h>
#endif
#endif
#endif
#if defined(MENU_DEBUG) && defined(TRACE) && !defined(trace)
#define trace(x) x
#else
#define trace(x)
#endif
#if defined(MENU_DEBUG) && !defined(_trace)
#define _trace(x) x
#else
#ifndef _trace
#define _trace(x)
#endif
#endif
#if defined(MENU_RELEASE) && !defined(__trace)
#define __trace(x) x
#else
#ifndef __trace
#define __trace(x)
#endif
#endif
namespace Menu {
extern const char* numericChars;
result maxDepthError(menuOut& o,idleEvent e);
}
#include "items.h"
#include "menuIo.h"
#include "nav.h"