Add rotation for RGB Panels

This commit is contained in:
fvanroie 2023-01-05 23:03:40 +01:00
parent 4c0e733827
commit b0ba6a7f2b
4 changed files with 16 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
#include "Arduino_ESP32RGBPanel_mod.h"
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3)
Arduino_ESP32RGBPanel_Mod::Arduino_ESP32RGBPanel_Mod(
int8_t cs, int8_t sck, int8_t sda,
int8_t de, int8_t vsync, int8_t hsync, int8_t pclk,

View File

@ -1,6 +1,10 @@
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
#ifdef HASP_USE_ARDUINOGFX
#include "Arduino.h"
#include "Arduino_DataBus.h"
#endif
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3)
#include "databus/Arduino_ESP32RGBPanel.h" // struct esp_rgb_panel_t
#ifndef _ARDUINO_ESP32RGBPANEL_MOD_H_

View File

@ -1,10 +1,10 @@
#include "Arduino_ESP32RGBPanel_mod.h"
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
#include "Arduino_DataBus.h"
#include "Arduino_GFX.h"
#include "Arduino_DataBus.h"
#include "Arduino_RPi_DPI_RGBPanel_mod.h"
#include "Arduino_ESP32RGBPanel_mod.h"
Arduino_RGBPanel_Mod::Arduino_RGBPanel_Mod(Arduino_ESP32RGBPanel_Mod* bus, int16_t w, uint16_t hsync_polarity,
uint16_t hsync_front_porch, uint16_t hsync_pulse_width,

View File

@ -1,3 +1,8 @@
#ifdef HASP_USE_ARDUINOGFX
#include "Arduino.h"
#include "Arduino_DataBus.h"
#endif
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
#include "Arduino_DataBus.h"