fix build for RP2040 which actually has 2 TwoWire interfaces.

This commit is contained in:
Thomas Göttgens 2022-11-12 17:50:33 +01:00
parent 52cf530356
commit b6de79b21a
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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