Merge pull request #112 from fionn-r/master

If there are no global instances defined, don't provide default &Seri…
This commit is contained in:
Limor "Ladyada" Fried
2025-09-16 10:09:57 -04:00
committed by GitHub
+5
View File
@@ -77,8 +77,13 @@ public:
void setAddress(uint16_t address);
void setAddressWidth(uint16_t address_width);
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
void print(Stream *s = &Serial);
void println(Stream *s = &Serial);
#else
void print(Stream *s);
void println(Stream *s);
#endif
private:
Adafruit_I2CDevice *_i2cdevice;