Skip to content

Commit

Permalink
add LILYGO_T_Display_S3_LONG dev device support
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed May 11, 2024
1 parent 7183867 commit f960c83
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
26 changes: 18 additions & 8 deletions examples/PDQgraphicstest/Arduino_GFX_dev_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// #define LILYGO_T_DISPLAY
// #define LILYGO_T_DISPLAY_S3
// #define LILYGO_T_Display_S3_AMOLED
// #define LILYGO_T_Display_S3_LONG
// #define LILYGO_T_DISPLAY_S3_PRO
// #define LILYGO_T_QT
// #define LILYGO_T_RGB
Expand Down Expand Up @@ -375,8 +376,8 @@ Arduino_GFX *gfx = new Arduino_ST7789(bus, 12 /* RST */, 1 /* rotation */, true
#define GFX_BL 1
Arduino_DataBus *bus = new Arduino_ESP32QSPI(
45 /* cs */, 47 /* sck */, 21 /* d0 */, 48 /* d1 */, 40 /* d2 */, 39 /* d3 */);
Arduino_GFX *g = new Arduino_AXS15231B(bus, GFX_NOT_DEFINED /* RST */, 0 /* rotation */, false /* IPS */);
Arduino_GFX *gfx = new Arduino_Canvas(320 /* width */, 480 /* height */, g);
Arduino_GFX *g = new Arduino_AXS15231B(bus, GFX_NOT_DEFINED /* RST */, 0 /* rotation */, false /* IPS */, 320 /* width */, 480 /* height */);
Arduino_GFX *gfx = new Arduino_Canvas(320 /* width */, 480 /* height */, g, 0 /* output_x */, 0 /* output_y */, 0 /* rotation */);
#define CANVAS

#elif defined(LILYGO_T_DECK)
Expand Down Expand Up @@ -420,6 +421,21 @@ Arduino_DataBus *bus = new Arduino_ESP32QSPI(
6 /* cs */, 47 /* sck */, 18 /* d0 */, 7 /* d1 */, 48 /* d2 */, 5 /* d3 */);
Arduino_GFX *gfx = new Arduino_RM67162(bus, 17 /* RST */, 0 /* rotation */);

#elif defined(LILYGO_T_Display_S3_LONG)
#define GFX_DEV_DEVICE LILYGO_T_DISPLAY_S3_LONG
#define GFX_BL 1
Arduino_DataBus *bus = new Arduino_ESP32QSPI(
12 /* cs */, 17 /* sck */, 13 /* d0 */, 18 /* d1 */, 21 /* d2 */, 14 /* d3 */);
Arduino_GFX *g = new Arduino_AXS15231B(bus, 47 /* RST */, 0 /* rotation */, false /* IPS */, 180 /* width */, 640 /* height */);
Arduino_GFX *gfx = new Arduino_Canvas(180 /* width */, 640 /* height */, g, 0 /* output_x */, 0 /* output_y */, 0 /* rotation */);
#define CANVAS

#elif defined(LILYGO_T_DISPLAY_S3_PRO)
#define GFX_DEV_DEVICE LILYGO_T_DISPLAY_S3_PRO
#define GFX_BL 48
Arduino_DataBus *bus = new Arduino_ESP32SPI(9 /* DC */, 39 /* CS */, 18 /* SCK */, 17 /* MOSI */, 8 /* MISO */);
Arduino_GFX *gfx = new Arduino_ST7796(bus, 47 /* RST */, 0 /* rotation */, true /* IPS */, 222 /* width */, 480 /* height */, 49 /* col offset 1 */, 0 /* row offset 1 */, 49 /* col offset 2 */, 0 /* row offset 2 */);

#elif defined(LILYGO_T_QT)
#define GFX_DEV_DEVICE LILYGO_T_QT
#define GFX_EXTRA_PRE_INIT() \
Expand All @@ -430,12 +446,6 @@ Arduino_GFX *gfx = new Arduino_RM67162(bus, 17 /* RST */, 0 /* rotation */);
Arduino_DataBus *bus = new Arduino_ESP32SPI(6 /* DC */, 5 /* CS */, 3 /* SCK */, 2 /* MOSI */, GFX_NOT_DEFINED /* MISO */);
Arduino_GFX *gfx = new Arduino_GC9107(bus, 1 /* RST */, 0 /* rotation */, true /* IPS */);

#elif defined(LILYGO_T_DISPLAY_S3_PRO)
#define GFX_DEV_DEVICE LILYGO_T_DISPLAY_S3_PRO
#define GFX_BL 48
Arduino_DataBus *bus = new Arduino_ESP32SPI(9 /* DC */, 39 /* CS */, 18 /* SCK */, 17 /* MOSI */, 8 /* MISO */);
Arduino_GFX *gfx = new Arduino_ST7796(bus, 47 /* RST */, 0 /* rotation */, true /* IPS */, 222 /* width */, 480 /* height */, 49 /* col offset 1 */, 0 /* row offset 1 */, 49 /* col offset 2 */, 0 /* row offset 2 */);

#elif defined(LILYGO_T_RGB)
#define GFX_DEV_DEVICE LILYGO_T_RGB
#include <Wire.h>
Expand Down
2 changes: 1 addition & 1 deletion src/display/Arduino_AXS15231B.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bool Arduino_AXS15231B::begin(int32_t speed)
{
if (speed == GFX_NOT_DEFINED)
{
speed = 40000000UL; // AXS15231B Maximum supported speed
speed = 32000000UL; // AXS15231B Maximum supported speed
}
return Arduino_TFT::begin(speed);
}
Expand Down
4 changes: 2 additions & 2 deletions src/display/Arduino_AXS15231B.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "../Arduino_GFX.h"
#include "../Arduino_TFT.h"

#define AXS15231B_TFTWIDTH 320
#define AXS15231B_TFTHEIGHT 480
#define AXS15231B_TFTWIDTH 360
#define AXS15231B_TFTHEIGHT 640

#define AXS15231B_RST_DELAY 200 ///< delay ms wait for reset finish
#define AXS15231B_SLPIN_DELAY 120 ///< delay ms wait for sleep in finish
Expand Down

0 comments on commit f960c83

Please sign in to comment.