Skip to content

Commit

Permalink
align spi_num with arduino-esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Mar 5, 2024
1 parent 461e199 commit 9a60955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/databus/Arduino_ESP32SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9a60955

Please sign in to comment.