mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add rotation for RGB Panels
This commit is contained in:
parent
4c0e733827
commit
b0ba6a7f2b
@ -1,7 +1,7 @@
|
|||||||
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
|
|
||||||
|
|
||||||
#include "Arduino_ESP32RGBPanel_mod.h"
|
#include "Arduino_ESP32RGBPanel_mod.h"
|
||||||
|
|
||||||
|
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3)
|
||||||
|
|
||||||
Arduino_ESP32RGBPanel_Mod::Arduino_ESP32RGBPanel_Mod(
|
Arduino_ESP32RGBPanel_Mod::Arduino_ESP32RGBPanel_Mod(
|
||||||
int8_t cs, int8_t sck, int8_t sda,
|
int8_t cs, int8_t sck, int8_t sda,
|
||||||
int8_t de, int8_t vsync, int8_t hsync, int8_t pclk,
|
int8_t de, int8_t vsync, int8_t hsync, int8_t pclk,
|
||||||
|
@ -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"
|
#include "Arduino_DataBus.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3)
|
||||||
|
|
||||||
#include "databus/Arduino_ESP32RGBPanel.h" // struct esp_rgb_panel_t
|
#include "databus/Arduino_ESP32RGBPanel.h" // struct esp_rgb_panel_t
|
||||||
|
|
||||||
#ifndef _ARDUINO_ESP32RGBPANEL_MOD_H_
|
#ifndef _ARDUINO_ESP32RGBPANEL_MOD_H_
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
#include "Arduino_ESP32RGBPanel_mod.h"
|
||||||
|
|
||||||
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
|
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
|
||||||
|
|
||||||
#include "Arduino_DataBus.h"
|
|
||||||
|
|
||||||
#include "Arduino_GFX.h"
|
#include "Arduino_GFX.h"
|
||||||
|
#include "Arduino_DataBus.h"
|
||||||
#include "Arduino_RPi_DPI_RGBPanel_mod.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,
|
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,
|
uint16_t hsync_front_porch, uint16_t hsync_pulse_width,
|
||||||
|
@ -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)
|
#if defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) && defined(HASP_USE_ARDUINOGFX)
|
||||||
|
|
||||||
#include "Arduino_DataBus.h"
|
#include "Arduino_DataBus.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user