Skip to content

Commit

Permalink
Eliminate compiler warning #45
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Jan 13, 2023
1 parent f6f5f5f commit 8421604
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/databus/Arduino_ESP32LCD16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ bool Arduino_ESP32LCD16::begin(int32_t speed, int8_t dataMode)
_d0, _d1, _d2, _d3, _d4, _d5, _d6, _d7,
_d8, _d9, _d10, _d11, _d12, _d13, _d14, _d15},
.bus_width = 16,
.max_transfer_bytes = LCD_MAX_PIXELS_AT_ONCE * 2};
.max_transfer_bytes = LCD_MAX_PIXELS_AT_ONCE * 2,
.psram_trans_align = 0,
.sram_trans_align = 0};
esp_lcd_new_i80_bus(&bus_config, &_i80_bus);

uint32_t diff = INT32_MAX;
Expand Down
4 changes: 3 additions & 1 deletion src/databus/Arduino_ESP32LCD8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ bool Arduino_ESP32LCD8::begin(int32_t speed, int8_t dataMode)
.data_gpio_nums = {
_d0, _d1, _d2, _d3, _d4, _d5, _d6, _d7},
.bus_width = 8,
.max_transfer_bytes = 2};
.max_transfer_bytes = 2,
.psram_trans_align = 0,
.sram_trans_align = 0};
esp_lcd_new_i80_bus(&bus_config, &_i80_bus);

uint32_t diff = INT32_MAX;
Expand Down
5 changes: 3 additions & 2 deletions src/databus/Arduino_XL9535SWSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ class Arduino_XL9535SWSPI : public Arduino_DataBus
uint8_t readRegister(uint8_t reg, uint8_t *data, uint8_t len);

uint8_t _address;
TwoWire *_wire;
bool is_found;

private:
int8_t _sda, _scl, _pwd, _cs, _sck, _mosi;
TwoWire *_wire;

private:
};

#endif // _ARDUINO_XL9535SWSPI_H_

0 comments on commit 8421604

Please sign in to comment.