fix build for RP2040 which actually has 2 TwoWire interfaces.

raytac-diy
Thomas Göttgens 2022-11-12 17:50:33 +01:00
rodzic 52cf530356
commit b6de79b21a
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -221,5 +221,5 @@ void scanI2Cdevice(TwoWire myWire, uint8_t busnum)
DEBUG_MSG("%i I2C devices found\n",nDevices);
}
#else
void scanI2Cdevice() {}
void scanI2Cdevice(TwoWire myWire, uint8_t busnum) {}
#endif

Wyświetl plik

@ -2,6 +2,13 @@
#define ARCH_RP2040
#ifndef HAS_SCREEN
#define HAS_SCREEN 1
#endif
#ifndef HAS_WIRE
#define HAS_WIRE 1
#endif
#if defined(PRIVATE_HW)
#define HW_VENDOR HardwareModel_PRIVATE_HW
#endif