-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,067 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
ota_0, app, ota_0, 0x10000, 0x3DA000, | ||
fctry, data, nvs, 0x3EA000, 0x6000, | ||
coredump, data, coredump,0x3F0000, 0x10000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
ota_0, app, ota_0, 0x10000, 0x3ED000, | ||
ota_1, app, ota_1, 0x3FD000, 0x3ED000, | ||
fctry, data, nvs, 0x7EA000, 0x6000, | ||
coredump, data, coredump,0x7F0000, 0x10000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
factory, app, factory, 0x10000, 0x3F0000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xE000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x1F0000, | ||
app1, app, ota_1, 0x200000, 0x1F0000, | ||
coredump, data, coredump, 0x3F0000, 0x10000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
#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 0x1001 | ||
|
||
#define USB_MANUFACTURER "Waveshare" | ||
#define USB_PRODUCT "ESP32-S3-Matrix" | ||
#define USB_SERIAL "" | ||
|
||
// Onboard 8 x 8 Matrix panel | ||
#define WS_MATRIX_DIN 14 | ||
|
||
// Onboard QMI8658 IMU | ||
#define WS_IMU_SDA 11 | ||
#define WS_IMU_SCL 12 | ||
#define WS_IMU_ADDRESS 0x6B | ||
#define WS_IMU_INT1 10 | ||
#define WS_IMU_INT2 13 | ||
|
||
// UART0 pins | ||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
// Def for I2C that shares the IMU I2C pins | ||
static const uint8_t SDA = 11; | ||
static const uint8_t SCL = 12; | ||
|
||
// Mapping based on the ESP32S3 data sheet - alternate for SPI2 | ||
static const uint8_t SS = 34; // FSPICS0 | ||
static const uint8_t MOSI = 35; // FSPID | ||
static const uint8_t MISO = 37; // FSPIQ | ||
static const uint8_t SCK = 36; // FSPICLK | ||
|
||
// Analog capable pins on the header | ||
static const uint8_t A0 = 1; | ||
static const uint8_t A1 = 2; | ||
static const uint8_t A2 = 3; | ||
static const uint8_t A3 = 4; | ||
static const uint8_t A4 = 5; | ||
static const uint8_t A5 = 6; | ||
static const uint8_t A6 = 7; | ||
|
||
// GPIO capable pins on the header | ||
static const uint8_t D0 = 7; | ||
static const uint8_t D1 = 6; | ||
static const uint8_t D2 = 5; | ||
static const uint8_t D3 = 4; | ||
static const uint8_t D4 = 3; | ||
static const uint8_t D5 = 2; | ||
static const uint8_t D6 = 1; | ||
static const uint8_t D7 = 44; | ||
static const uint8_t D8 = 43; | ||
static const uint8_t D9 = 40; | ||
static const uint8_t D10 = 39; | ||
static const uint8_t D11 = 38; | ||
static const uint8_t D12 = 37; | ||
static const uint8_t D13 = 36; | ||
static const uint8_t D14 = 35; | ||
static const uint8_t D15 = 34; | ||
static const uint8_t D16 = 33; | ||
|
||
// Touch input capable pins on the header | ||
static const uint8_t T1 = 1; | ||
static const uint8_t T2 = 2; | ||
static const uint8_t T3 = 3; | ||
static const uint8_t T4 = 4; | ||
static const uint8_t T5 = 5; | ||
static const uint8_t T6 = 6; | ||
static const uint8_t T7 = 7; | ||
|
||
#endif /* Pins_Arduino_h */ |