forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobalBuildOptions.ino
31 lines (26 loc) · 965 Bytes
/
GlobalBuildOptions.ino
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
/*
* Showcase the use of embedded build options and global defines through a specially named .h file.
* Sketch file name followed by ".globals.h", "GlobalBuildOptions.ino.globals.h"
*
* Example from https://arduino-esp8266.readthedocs.io/en/latest/faq/a06-global-build-options.html
*
* Note, we do not "#include" the special file "GlobalBuildOptions.ino.globals.h".
* The prebuild script will make it available to all modules.
*
* To track the new sketch name when saving this sketch to a new location and
* name, remember to update the global .h file name.
*/
#include <umm_malloc/umm_malloc.h> // has prototype for umm_free_heap_size_min()
void setup() {
Serial.begin(115200);
delay(200);
#ifdef MYTITLE1
Serial.printf("\r\n" MYTITLE1 MYTITLE2 "\r\n");
#else
Serial.println("ERROR: MYTITLE1 not present");
#endif
#if defined(UMM_STATS_FULL)
Serial.printf("Heap Low Watermark %u\r\n", umm_free_heap_size_min());
#endif
}
void loop() {}