This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathePaperDfs.h
67 lines (49 loc) · 1.91 KB
/
ePaperDfs.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
ePaperDfs.h
2013 Copyright (c) Seeed Technology Inc. All right reserved.
Modified by Loovee
www.seeedstudio.com
2013-7-2
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __EPAPERDFS_H__
#define __EPAPERDFS_H__
// pin define
typedef enum {
DIRNORMAL,
DIRLEFT,
DIRRIGHT,
DIRDOWN
} EPD_DIR;
#define Pin_TEMPERATURE A0
#define Pin_PANEL_ON 2
#define Pin_BORDER 3
#define Pin_DISCHARGE 8
#define Pin_PWM 5
#define Pin_RESET 6
#define Pin_BUSY 7
#define Pin_EPD_CS 10
#define Pin_SD_CS 4
#define Pin_OE123 A1
#define Pin_STV_IN A3
// spi cs
#define EPD_SELECT() digitalWrite(Pin_EPD_CS, LOW)
#define EPD_UNSELECT() digitalWrite(Pin_EPD_CS, HIGH)
#define SD_SELECT() digitalWrite(Pin_SD_CS, LOW)
#define SD_UNSELECT() digitalWrite(Pin_SD_CS, HIGH)
#define FONT_SELECT() digitalWrite(Pin_Font_CS, LOW)
#define FONT_UNSELECT() digitalWrite(Pin_Font_CS, HIGH)
#endif
/*********************************************************************************************************
END FILE
*********************************************************************************************************/