This repository was archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmultiFileProject.ino
46 lines (34 loc) · 1.63 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
/****************************************************************************************************************************
multiFileProject.ino
For W5x00, ENC28J60 and built-in LAN8742A Ethernet shields.
Ethernet_Manager is a library for STM32F/L/H/G/WB/MP1 with Ethernet W5x00, ENC28J60 or built-in LAN8742A shields,
to enable easy configuration/reconfiguration of Credentials and autoconnect/autoreconnect of Ethernet.
Built by Khoi Hoang https://github.com/khoih-prog/Ethernet_Manager_STM32
Licensed under MIT license
*****************************************************************************************************************************/
// To demo how to include files in multi-file Projects
#define ETHERNET_MANAGER_STM32_VERSION_MIN_TARGET "Ethernet_Manager_STM32 v1.3.2"
#define ETHERNET_MANAGER_STM32_VERSION_MIN 1003002
#include "multiFileProject.h"
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
#include <Ethernet_Manager_STM32.h> // https://github.com/khoih-prog/Ethernet_Manager_STM32
void setup()
{
Serial.begin(115200);
while (!Serial);
delay(500);
Serial.println("\nStart multiFileProject");
Serial.println(ETHERNET_MANAGER_STM32_VERSION);
#if defined(ETHERNET_MANAGER_STM32_VERSION_MIN)
if (ETHERNET_MANAGER_STM32_VERSION_INT < ETHERNET_MANAGER_STM32_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(ETHERNET_MANAGER_STM32_VERSION_MIN_TARGET);
}
#endif
Serial.print("You're OK now");
}
void loop()
{
// put your main code here, to run repeatedly:
}