-
Notifications
You must be signed in to change notification settings - Fork 7.6k
/
Copy pathpins_arduino.h
53 lines (41 loc) · 1.04 KB
/
pins_arduino.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
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
// BN: ESP32 Family Device
#define USB_VID 0x303a
#define USB_PID 0x8242
#define USB_MANUFACTURER "Waveshare"
#define USB_PRODUCT "ESP32-Touch-AMOLED-2.41"
#define USB_SERIAL ""
// display QSPI
#define QSPI_CS 9
#define QSPI_SCK 10
#define QSPI_D0 11
#define QSPI_D1 12
#define QSPI_D2 13
#define QSPI_D3 14
#define AMOLED_RESET 21
#define AMOLED_TE -1
#define AMOLED_PWR_EN -1
// Touch I2C
#define TP_SCL 48
#define TP_SDA 47
#define TP_RST -1
#define TP_INT -1
// Onboard RTC for PCF85063
#define RTC_SCL 48
#define RTC_SDA 47
#define RTC_ADDRESS 0x51
#define RTC_INT -1
// Onboard QMI8658 IMU
#define QMI8658_SDA 47
#define QMI8658_SCL 48
#define QMI8658_ADDRESS 0x6b
#define QMI8658_INT1 -1
// Partial voltage measurement method
#define BAT_ADC 17
// Def for I2C that shares the IMU I2C pins
static const uint8_t SDA = 47;
static const uint8_t SCL = 48;
#endif /* Pins_Arduino_h */