File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -957,6 +957,13 @@ int OLEDDisplay::_putc(int c) {
957
957
958
958
return this ->write ((uint8_t )c);
959
959
}
960
+ #elif ESP_PLATFORM
961
+ size_t OLEDDisplay::println (uint8_t c) {
962
+ return write (c);
963
+ }
964
+ size_t OLEDDisplay::println (const char *str) {
965
+ return write (*str);
966
+ }
960
967
#endif
961
968
962
969
// Private functions
Original file line number Diff line number Diff line change @@ -367,6 +367,10 @@ class OLEDDisplay : public Stream {
367
367
#ifdef __MBED__
368
368
int _putc (int c);
369
369
int _getc () { return -1 ; };
370
+ #elif ESP_PLATFORM
371
+ // Functions of the Arduino `Print` class since it is not part of the ESP-IDF framework
372
+ size_t println (uint8_t c);
373
+ size_t println (const char *str);
370
374
#endif
371
375
372
376
You can’t perform that action at this time.
0 commit comments