mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2026-07-28 14:47:16 -07:00
This Pancake C5 Hardware Is already supported by other firmware... -Ghost ESP (Release v2.0) -Launcher(Beta Release) I left the CI build step commented out like the V8 build until... you are ready. - configs.h: MARAUDER_PANCAKE board defines, pins, battery (MAX17048), cap-touch I2C, and screen geometry. Status-bar icon x-positions and packet-monitor geometry generalized to SB_*/PKT_* macros so the wider 320px panel lays out correctly (identical results on existing 240px boards). - Display.cpp/.h: FT6336 capacitive touch path (rotation-aware, edge exclusion) gated on HAS_CAP_TOUCH; ft6336.h driver added. - MenuFunctions.cpp / WiFiScan.cpp: hardcoded status-bar and oscilloscope pixel coords replaced with the new screen-size macros. - User_Setup_marauder_pancake.h + User_Setup_Select.h entry. - build_parallel.yml: Pancake matrix entry added but commented out
56 lines
1.8 KiB
C
56 lines
1.8 KiB
C
// USER DEFINED SETTINGS
|
|
// TFT_eSPI setup for Marauder Pancake (ESP32-C5-DevKitC-1 + ILI9341 3.5")
|
|
|
|
// ##################################################################################
|
|
// Section 1. Driver
|
|
// ##################################################################################
|
|
|
|
//#define ILI9341_DRIVER
|
|
#define ST7796_DRIVER
|
|
|
|
// 3.5-inch portrait panel native resolution
|
|
#define TFT_WIDTH 320
|
|
#define TFT_HEIGHT 480
|
|
|
|
|
|
// If colours are inverted (white shows as black) then uncomment one of the next
|
|
// 2 lines try both options, one of the options should correct the inversion.
|
|
|
|
#define TFT_INVERSION_ON
|
|
// #define TFT_INVERSION_OFF
|
|
|
|
// ##################################################################################
|
|
// Section 2. Pin assignments (Pancake hardware)
|
|
// ##################################################################################
|
|
|
|
#define TFT_MISO 4
|
|
#define TFT_MOSI 24
|
|
#define TFT_SCLK 23
|
|
#define TFT_CS 5 // TFT chip select
|
|
#define TFT_DC 3 // Data/command
|
|
#define TFT_RST 2 // Reset
|
|
#define TFT_BL 26 // Backlight
|
|
|
|
#define TOUCH_CS -1 // No resistive touch chip; FT6336 is I2C-only
|
|
|
|
// ##################################################################################
|
|
// Section 3. Fonts
|
|
// ##################################################################################
|
|
|
|
#define LOAD_GLCD
|
|
#define LOAD_FONT2
|
|
#define LOAD_FONT4
|
|
// #define LOAD_FONT6
|
|
// #define LOAD_FONT7
|
|
// #define LOAD_FONT8
|
|
#define LOAD_GFXFF
|
|
#define SMOOTH_FONT
|
|
|
|
// ##################################################################################
|
|
// Section 4. SPI speed
|
|
// ##################################################################################
|
|
|
|
#define SPI_FREQUENCY 27000000
|
|
#define SPI_READ_FREQUENCY 20000000
|
|
#define SPI_TOUCH_FREQUENCY 2500000
|