Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
pin_assignment.h
Go to the documentation of this file.
1#ifndef _PAPERDINK_PIN_ASSIGNMENT_H_
2#define _PAPERDINK_PIN_ASSIGNMENT_H_
3
4// PIN ASSIGNMENT
5
6// I2C pins
7#define SDA 16
8#define SCL 17
9
10// SPI pins
11
12// SD card pins
13#define SS 21
14#define SD_CS SS
15#define SD_EN 5
16
17// E-paper pins
18#define EPD_CS 22
19#define EPD_DC 15
20#define EPD_BUSY 34
21#define EPD_EN 12
22#define EPD_RST 13
23
24// PCF8574 pins
25#define PCF_INT 35
26#define SD_CD P4 // input
27#define EXT_GPIO1 P5
28#define EXT_GPIO2 P6
29#define EXT_GPIO3 P7
30#define PCF_I2C_ADDR 0x38
31
32// LiPo
33#define CHARGE_PIN 36
34#define BATT_EN 25
35#define BATT_VOLT 39
36
37// Buzzer
38#define BUZR 26
39
40// Buttons
41// Top to bottom
42#define BUTTON_1_PIN 14
43#define BUTTON_1_RTC_GPIO 16
44
45#define BUTTON_2_PIN 27
46#define BUTTON_2_RTC_GPIO 17
47
48#define BUTTON_3_PIN 4
49#define BUTTON_3_RTC_GPIO 10
50
51#define BUTTON_4_PIN 2
52#define BUTTON_4_RTC_GPIO 12
53
54#endif /* _PAPERDINK_PIN_ASSIGNMENT_H_ */