adafruit / Adafruit_SSD1306

Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs
http://www.adafruit.com/category/63_98
Other
1.81k stars 984 forks source link

Where is the method "print" located in this library? I was trying to find the implementatin of the method "print" and "println" for the oled display. I found the line in the example "display.println(F("Hello, world!"));" But where is this method? #248

Closed Nikolay19971997 closed 2 years ago

Nikolay19971997 commented 2 years ago

Thank you for opening an issue on an Adafruit Arduino library repository. To improve the speed of resolution please review the following guidelines and common troubleshooting steps below before creating the issue:

If you're sure this issue is a defect in the code and checked the steps above please fill in the following fields to provide enough troubleshooting information. You may delete the guideline and text above to just leave the following details:

Nikolay19971997 commented 2 years ago

I can assume this method could be inherited from class "Print" but i cannot find files with this class in your repositories. Can you please tell me where i can find this

caternuson commented 2 years ago

Correct. It's inherited.

Adafruit_SSD1306 -> Adafruit_GFX -> Print

Print itself is implemented in the core, so will be board specific. Here's the AVR one: https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/Print.h