mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Update ILI9341_2.cpp
This commit is contained in:
parent
b3788a5f8d
commit
66788c0383
@ -189,9 +189,11 @@ void ILI9341_2::init(uint16_t width, uint16_t height) {
|
|||||||
|
|
||||||
if (_hwspi >= 2) {
|
if (_hwspi >= 2) {
|
||||||
spi2 = &SPI;
|
spi2 = &SPI;
|
||||||
|
#ifdef ESP32
|
||||||
if (_hwspi > 2) {
|
if (_hwspi > 2) {
|
||||||
spi2->begin(_sclk, _miso, _mosi, -1);
|
spi2->begin(_sclk, _miso, _mosi, -1);
|
||||||
}
|
}
|
||||||
|
#endif // ESP32
|
||||||
} else {
|
} else {
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
if (_spibus == 2) {
|
if (_spibus == 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user