Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d7dd63f

Browse files
authoredOct 16, 2024··
ci(pre-commit): Apply automatic fixes
1 parent 2b268df commit d7dd63f

File tree

2 files changed

+71
-71
lines changed

2 files changed

+71
-71
lines changed
 

‎boards.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40831,9 +40831,9 @@ waveshare_esp32_s3_lcd_169.menu.EraseFlash.all.upload.erase_cmd=-e
4083140831

4083240832
waveshare_esp32s3_touch_lcd_128.name=Waveshare ESP32-S3-Touch-LCD-1.28
4083340833
waveshare_esp32s3_touch_lcd_128.vid.0=0x303a
40834-
waveshare_esp32s3_touch_lcd_128.pid.0=0x8281
40834+
waveshare_esp32s3_touch_lcd_128.pid.0=0x8281
4083540835
waveshare_esp32s3_touch_lcd_128.upload_port.0.vid=0x303a
40836-
waveshare_esp32s3_touch_lcd_128.upload_port.0.pid=0x8281
40836+
waveshare_esp32s3_touch_lcd_128.upload_port.0.pid=0x8281
4083740837

4083840838
waveshare_esp32s3_touch_lcd_128.upload.tool=esptool_py
4083940839
waveshare_esp32s3_touch_lcd_128.upload.tool.default=esptool_py
Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
#ifndef Pins_Arduino_h
2-
#define Pins_Arduino_h
3-
4-
#include <stdint.h>
5-
#include "soc/soc_caps.h"
6-
7-
// BN: ESP32 Family Device
8-
#define USB_VID 0x303a
9-
#define USB_PID 0x8290
10-
11-
#define USB_MANUFACTURER "Waveshare"
12-
#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.85"
13-
#define USB_SERIAL ""
14-
15-
// display QSPI SPI2
16-
#define LCD_SPI_DATA0 46
17-
#define LCD_SPI_DATA1 45
18-
#define LCD_SPI_DATA2 42
19-
#define LCD_SPI_DATA3 41
20-
#define LCD_SPI_SCK 40
21-
#define LCD_SPI_CS 21
22-
#define LCD_TE_IO 18
23-
24-
#define LCD_Backlight_IO 5
25-
#define LCD_RESET_IO -1
26-
27-
// Touch I2C
28-
#define TP_SDA_IO 1
29-
#define TP_SCL_IO 3
30-
#define TP_INT_IO 4
31-
#define TP_RST_IO -1
32-
33-
// Onboard PCF85063 / QMI8658 / I2C Port
34-
#define I2C_SCL_IO 10
35-
#define I2C_SDA_IO 11
36-
37-
// Onboard RTC for PCF85063
38-
#define PCF85063_ADDRESS 0x51
39-
#define PCF85063_SCL_IO I2C_SCL_IO
40-
#define PCF85063_SDA_IO I2C_SDA_IO
41-
#define PCF85063__INT 9
42-
43-
// Onboard QMI8658 IMU
44-
#define QMI8658_L_SLAVE_ADDRESS 0x6B
45-
#define QMI8658_H_SLAVE_ADDRESS 0x6A
46-
47-
#define QMI8658_ADDRESS QMI8658_L_SLAVE_ADDRESS
48-
#define QMI8658_SCL_IO I2C_SCL_IO
49-
#define QMI8658_SDA_IO I2C_SDA_IO
50-
#define QMI8658_INT1_IO -1 // Using extended IO5
51-
#define QMI8658_INT2_IO -1 // Using extended IO4
52-
53-
// Partial voltage measurement method
54-
#define BAT_ADC_IO 8
55-
56-
// Def for I2C that shares the IMU I2C pins
57-
static const uint8_t SDA = I2C_SDA_IO;
58-
static const uint8_t SCL = I2C_SCL_IO;
59-
60-
// UART0 pins
61-
static const uint8_t TX = 43;
62-
static const uint8_t RX = 44;
63-
64-
//esp32s3-PSFlash SPI1/SPI0
65-
static const uint8_t SS = 34; // FSPICS0
66-
static const uint8_t MOSI = 35; // FSPID
67-
static const uint8_t MISO = 37; // FSPIQ
68-
static const uint8_t SCK = 36; // FSPICLK
69-
#endif /* Pins_Arduino_h */
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
// BN: ESP32 Family Device
8+
#define USB_VID 0x303a
9+
#define USB_PID 0x8290
10+
11+
#define USB_MANUFACTURER "Waveshare"
12+
#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.85"
13+
#define USB_SERIAL ""
14+
15+
// display QSPI SPI2
16+
#define LCD_SPI_DATA0 46
17+
#define LCD_SPI_DATA1 45
18+
#define LCD_SPI_DATA2 42
19+
#define LCD_SPI_DATA3 41
20+
#define LCD_SPI_SCK 40
21+
#define LCD_SPI_CS 21
22+
#define LCD_TE_IO 18
23+
24+
#define LCD_Backlight_IO 5
25+
#define LCD_RESET_IO -1
26+
27+
// Touch I2C
28+
#define TP_SDA_IO 1
29+
#define TP_SCL_IO 3
30+
#define TP_INT_IO 4
31+
#define TP_RST_IO -1
32+
33+
// Onboard PCF85063 / QMI8658 / I2C Port
34+
#define I2C_SCL_IO 10
35+
#define I2C_SDA_IO 11
36+
37+
// Onboard RTC for PCF85063
38+
#define PCF85063_ADDRESS 0x51
39+
#define PCF85063_SCL_IO I2C_SCL_IO
40+
#define PCF85063_SDA_IO I2C_SDA_IO
41+
#define PCF85063__INT 9
42+
43+
// Onboard QMI8658 IMU
44+
#define QMI8658_L_SLAVE_ADDRESS 0x6B
45+
#define QMI8658_H_SLAVE_ADDRESS 0x6A
46+
47+
#define QMI8658_ADDRESS QMI8658_L_SLAVE_ADDRESS
48+
#define QMI8658_SCL_IO I2C_SCL_IO
49+
#define QMI8658_SDA_IO I2C_SDA_IO
50+
#define QMI8658_INT1_IO -1 // Using extended IO5
51+
#define QMI8658_INT2_IO -1 // Using extended IO4
52+
53+
// Partial voltage measurement method
54+
#define BAT_ADC_IO 8
55+
56+
// Def for I2C that shares the IMU I2C pins
57+
static const uint8_t SDA = I2C_SDA_IO;
58+
static const uint8_t SCL = I2C_SCL_IO;
59+
60+
// UART0 pins
61+
static const uint8_t TX = 43;
62+
static const uint8_t RX = 44;
63+
64+
//esp32s3-PSFlash SPI1/SPI0
65+
static const uint8_t SS = 34; // FSPICS0
66+
static const uint8_t MOSI = 35; // FSPID
67+
static const uint8_t MISO = 37; // FSPIQ
68+
static const uint8_t SCK = 36; // FSPICLK
69+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)
Please sign in to comment.