This repository was archived by the owner on Feb 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathmultiFileProject.ino
47 lines (33 loc) · 1.51 KB
/
multiFileProject.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/****************************************************************************************************************************
multiFileProject.ino
EthernetWebServer is a library for the Ethernet shields to run WebServer
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer
Licensed under MIT license
*****************************************************************************************************************************/
// To demo how to include files in multi-file Projects
#define ETHERNET_WEBSERVER_VERSION_MIN_TARGET "EthernetWebServer v2.2.4"
#define ETHERNET_WEBSERVER_VERSION_MIN 2002004
#include "multiFileProject.h"
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
#include <EthernetWebServer.h> // https://github.com/khoih-prog/EthernetWebServer
void setup()
{
SerialDebug.begin(115200);
while (!SerialDebug && millis() < 5000);
delay(500);
SerialDebug.println("\nStart multiFileProject");
SerialDebug.println(ETHERNET_WEBSERVER_VERSION);
#if defined(ETHERNET_WEBSERVER_VERSION_MIN)
if (ETHERNET_WEBSERVER_VERSION_INT < ETHERNET_WEBSERVER_VERSION_MIN)
{
SerialDebug.print("Warning. Must use this example on Version equal or later than : ");
SerialDebug.println(ETHERNET_WEBSERVER_VERSION_MIN_TARGET);
}
#endif
SerialDebug.print("You're OK now");
}
void loop()
{
// put your main code here, to run repeatedly:
}