Skip to content

Commit ba105ed

Browse files
expose useBigEndian
1 parent 639428b commit ba105ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/databus/Arduino_ESP32RGBPanel.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// ESP_LCD_Panel implementation for esp32s3.
44

5-
// This panel implementation requires a hardware setup with
5+
// This panel implementation requires a hardware setup with
66
// * RGB LCD peripheral supported (esps3 for now)
77
// * Octal PSRAM onboard
88
// * RGB panel, 16 bit-width, with HSYNC, VSYNC and DE signal
@@ -12,7 +12,7 @@
1212
// See: (ESP32 board version 3.x)
1313
// * https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/lcd/rgb_lcd.html
1414
// * https://github.com/espressif/esp-idf/blob/master/examples/peripherals/lcd/rgb_panel/README.md
15-
//
15+
//
1616
// The prior implementation (ESP32 board version 2.x) was largely undocumented.
1717

1818
#include "Arduino_DataBus.h"
@@ -37,7 +37,6 @@ extern int Cache_WriteBack_Addr(uint32_t addr, uint32_t size);
3737
#include "hal/lcd_hal.h"
3838
#include "hal/lcd_ll.h"
3939

40-
4140
// extract from esp-idf esp_lcd_rgb_panel.c
4241
struct esp_rgb_panel_t
4342
{
@@ -86,6 +85,10 @@ class Arduino_ESP32RGBPanel
8685

8786
bool begin(int32_t speed = GFX_NOT_DEFINED);
8887

88+
bool isUseBigEndian() {
89+
return _useBigEndian;
90+
}
91+
8992
uint16_t *getFrameBuffer(int16_t w, int16_t h);
9093

9194
protected:

0 commit comments

Comments
 (0)