-
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.
feat(board): Add custom board Huidu HD-WF2/HD-WF4 - esp32-s3 HUB75 dr…
…iver boards (#10779) * feat(board): Add custom boards Huidu HD-WF2/HD-WF4 - esp32-s3 HUB75 driver boards * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Me No Dev <[email protected]>
- Loading branch information
1 parent
7cfe0ad
commit e305a48
Showing
3 changed files
with
488 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
// Huidu HD-WF2 - esp32-s3 HUB75 driver board | ||
// https://www.hdwell.com/Product/index46.html | ||
// https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/discussions/667 | ||
|
||
#define USB_VID 0x303a | ||
#define USB_PID 0x1001 | ||
|
||
#define WF2_X1_R1_PIN 2 | ||
#define WF2_X1_R2_PIN 3 | ||
#define WF2_X1_G1_PIN 6 | ||
#define WF2_X1_G2_PIN 7 | ||
#define WF2_X1_B1_PIN 10 | ||
#define WF2_X1_B2_PIN 11 | ||
#define WF2_X1_E_PIN 21 | ||
|
||
#define WF2_X2_R1_PIN 4 | ||
#define WF2_X2_R2_PIN 5 | ||
#define WF2_X2_G1_PIN 8 | ||
#define WF2_X2_G2_PIN 9 | ||
#define WF2_X2_B1_PIN 12 | ||
#define WF2_X2_B2_PIN 13 | ||
#define WF2_X2_E_PIN -1 // Currently unknown, so X2 port will not work (yet) with 1/32 scan panels | ||
|
||
#define WF2_A_PIN 39 | ||
#define WF2_B_PIN 38 | ||
#define WF2_C_PIN 37 | ||
#define WF2_D_PIN 36 | ||
#define WF2_OE_PIN 35 | ||
#define WF2_CLK_PIN 34 | ||
#define WF2_LAT_PIN 33 | ||
|
||
#define WF2_BUTTON_TEST 17 // Test key button on PCB, 1=normal, 0=pressed | ||
#define WF2_LED_RUN_PIN 40 // Status LED on PCB | ||
#define WF2_BM8563_I2C_SDA 41 // RTC BM8563 I2C port | ||
#define WF2_BM8563_I2C_SCL 42 | ||
#define WF2_USB_DN_PIN 19 // USB D- | ||
#define WF2_USB_DP_PIN 20 // USB D+ | ||
|
||
#define WF2_PCB1_PIN 45 // open pad on PCB | ||
#define WF2_PCB2_PIN 46 // open pad on PCB | ||
|
||
#define LED_BUILTIN WF2_LED_RUN_PIN | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t SDA = WF2_BM8563_I2C_SDA; | ||
static const uint8_t SCL = WF2_BM8563_I2C_SCL; | ||
|
||
static const uint8_t SS = 10; | ||
static const uint8_t MOSI = 11; | ||
static const uint8_t MISO = 13; | ||
static const uint8_t SCK = 12; | ||
|
||
static const uint8_t T1 = WF2_X1_R1_PIN; | ||
static const uint8_t T2 = WF2_X1_R2_PIN; | ||
static const uint8_t T3 = WF2_X1_G1_PIN; | ||
static const uint8_t T4 = WF2_X1_G2_PIN; | ||
static const uint8_t T5 = WF2_X1_B1_PIN; | ||
static const uint8_t T6 = WF2_X1_B2_PIN; | ||
static const uint8_t T7 = WF2_A_PIN; | ||
static const uint8_t T8 = WF2_B_PIN; | ||
static const uint8_t T9 = WF2_C_PIN; | ||
static const uint8_t T10 = WF2_D_PIN; | ||
static const uint8_t T11 = WF2_X1_E_PIN; | ||
static const uint8_t T12 = WF2_OE_PIN; | ||
static const uint8_t T13 = WF2_CLK_PIN; | ||
static const uint8_t T14 = WF2_LAT_PIN; | ||
|
||
#endif /* Pins_Arduino_h */ |
Oops, something went wrong.