mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 15:06:38 +01:00
45 lines
830 B
C
45 lines
830 B
C
#include <Arduino.h>
|
|
|
|
// how long the we should keep the transfer metadata
|
|
#define PENDING_TIMEOUT 24*3600
|
|
// this determines how long images will be cached;
|
|
#define PENDING_DATA_TIMEOUT 60
|
|
// maximum time (in minutes) that a tag is put to sleep if no update is expected.
|
|
#define MIN_RESPONSE_TIME 10
|
|
|
|
// flasher options
|
|
#define CUSTOM_MAC_HDR 0x0000
|
|
|
|
/* Lolin32 lite connections to AP tag
|
|
#define RXD1 16
|
|
#define TXD1 17
|
|
|
|
#define ZBS_SS 5
|
|
#define ZBS_CLK 18
|
|
#define ZBS_MoSi 23
|
|
#define ZBS_MiSo 19
|
|
#define ZBS_Reset 2
|
|
#define ZBS_POWER1 13
|
|
#define ZBS_POWER2 15
|
|
|
|
#define ONBOARD_LED 22
|
|
//*/
|
|
|
|
//*
|
|
#define RXD1 13
|
|
#define TXD1 12
|
|
|
|
#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 ONBOARD_LED 22
|
|
//*/
|
|
|
|
#define MAX_WRITE_ATTEMPTS 5
|
|
|