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
commit 028b28acb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

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;