From 9a6095590c9a445d6a4cd30525cd305367ca3f73 Mon Sep 17 00:00:00 2001 From: moononournation Date: Tue, 5 Mar 2024 19:07:03 +0800 Subject: [PATCH] align spi_num with arduino-esp32 --- src/databus/Arduino_ESP32SPI.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/databus/Arduino_ESP32SPI.h b/src/databus/Arduino_ESP32SPI.h index adddcf56..49128910 100644 --- a/src/databus/Arduino_ESP32SPI.h +++ b/src/databus/Arduino_ESP32SPI.h @@ -32,7 +32,7 @@ class Arduino_ESP32SPI : public Arduino_DataBus #if CONFIG_IDF_TARGET_ESP32 Arduino_ESP32SPI(int8_t dc = GFX_NOT_DEFINED, int8_t cs = GFX_NOT_DEFINED, int8_t sck = GFX_NOT_DEFINED, int8_t mosi = GFX_NOT_DEFINED, int8_t miso = GFX_NOT_DEFINED, uint8_t spi_num = VSPI, bool is_shared_interface = true); // Constructor #elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 - Arduino_ESP32SPI(int8_t dc = GFX_NOT_DEFINED, int8_t cs = GFX_NOT_DEFINED, int8_t sck = GFX_NOT_DEFINED, int8_t mosi = GFX_NOT_DEFINED, int8_t miso = GFX_NOT_DEFINED, uint8_t spi_num = HSPI, bool is_shared_interface = true); // Constructor + Arduino_ESP32SPI(int8_t dc = GFX_NOT_DEFINED, int8_t cs = GFX_NOT_DEFINED, int8_t sck = GFX_NOT_DEFINED, int8_t mosi = GFX_NOT_DEFINED, int8_t miso = GFX_NOT_DEFINED, uint8_t spi_num = FSPI, bool is_shared_interface = true); // Constructor #else Arduino_ESP32SPI(int8_t dc = GFX_NOT_DEFINED, int8_t cs = GFX_NOT_DEFINED, int8_t sck = GFX_NOT_DEFINED, int8_t mosi = GFX_NOT_DEFINED, int8_t miso = GFX_NOT_DEFINED, uint8_t spi_num = FSPI, bool is_shared_interface = true); // Constructor #endif @@ -87,9 +87,9 @@ class Arduino_ESP32SPI : public Arduino_DataBus union { - uint8_t* _buffer; - uint16_t* _buffer16; - uint32_t* _buffer32; + uint8_t *_buffer; + uint16_t *_buffer16; + uint32_t *_buffer32; }; uint16_t _data_buf_bit_idx = 0;