Update ILI9341_2.cpp

This commit is contained in:
gemu2015 2021-02-19 14:10:09 +01:00
parent b3788a5f8d
commit 66788c0383
1 changed files with 2 additions and 0 deletions

View File

@ -189,9 +189,11 @@ void ILI9341_2::init(uint16_t width, uint16_t height) {
if (_hwspi >= 2) {
spi2 = &SPI;
#ifdef ESP32
if (_hwspi > 2) {
spi2->begin(_sclk, _miso, _mosi, -1);
}
#endif // ESP32
} else {
#ifdef ESP32
if (_spibus == 2) {