mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
#include <Arduino.h>
|
|
|
|
//#define NETWORK_MODE // comment me in to enable network-mode. I'm ready to go in, coach, just give me a chance!
|
|
|
|
#ifndef NETWORK_MODE
|
|
#define STANDALONE_MODE
|
|
#endif
|
|
|
|
#ifdef NETWORK_MODE
|
|
#define WEBSERVER_PATH "http://your-webserver/esl/"
|
|
#define CHECK_IN_URL "http://your-webserver/esl/check-in.php"
|
|
#endif
|
|
|
|
#ifdef STANDALONE_MODE
|
|
#define CHECK_IN_DELAY 900000
|
|
#define RETRY_DELAY 1000
|
|
#define FAILED_TILL_BLANK 2
|
|
#define FAILED_TILL_REASSOCIATE 1
|
|
#endif
|
|
|
|
|
|
// how long the we should keep the transfer metadata
|
|
#define PENDING_TIMEOUT 300
|
|
// this determines how long images will be cached;
|
|
#define PENDING_DATA_TIMEOUT 60
|
|
|
|
|
|
// flasher options
|
|
#define CUSTOM_MAC_HDR 0x0000
|
|
|
|
// connections to the tag
|
|
//#define RXD1 16 //was 16 - 13
|
|
//#define TXD1 17 // was 17 - 12
|
|
|
|
#define RXD1 13 // 1st
|
|
#define TXD1 12 // 2nd
|
|
#define ZBS_SS 21
|
|
#define ZBS_CLK 18
|
|
#define ZBS_MoSi 22
|
|
#define ZBS_MiSo 19
|
|
#define ZBS_Reset 5
|
|
#define ZBS_POWER1 15
|
|
#define ZBS_POWER2 2
|
|
|
|
#define MAX_WRITE_ATTEMPTS 5 |