Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(board): Add custom board Huidu HD-WF2 - esp32-s3 HUB75 driver board #10779

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions variants/huidu_hd_wf2/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#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


constexpr uint8_t TX = 43;
constexpr uint8_t RX = 44;

constexpr uint8_t SDA = WF2_BM8563_I2C_SDA;
constexpr uint8_t SCL = WF2_BM8563_I2C_SCL;

constexpr uint8_t T1 = WF2_X1_R1_PIN;
constexpr uint8_t T2 = WF2_X1_R2_PIN;
constexpr uint8_t T3 = WF2_X1_G1_PIN;
constexpr uint8_t T4 = WF2_X1_G2_PIN;
constexpr uint8_t T5 = WF2_X1_B1_PIN;
constexpr uint8_t T6 = WF2_X1_B2_PIN;
constexpr uint8_t T7 = WF2_X1_E_PIN;
constexpr uint8_t T8 = WF2_A_PIN;
constexpr uint8_t T9 = WF2_B_PIN;
constexpr uint8_t T10 = WF2_C_PIN;
constexpr uint8_t T11 = WF2_D_PIN;
constexpr uint8_t T12 = WF2_OE_PIN;
constexpr uint8_t T13 = WF2_CLK_PIN;
constexpr uint8_t T14 = WF2_LAT_PIN;

#endif /* Pins_Arduino_h */
Loading