ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
1.99k stars 637 forks source link

How about adding setTextColor() Function? #287

Closed yammayamm closed 3 years ago

yammayamm commented 4 years ago

Why don't you have setTextColor(FontColor,BackgroundColor) function? I was trying to use this function to display the inverted text for my project, but I couldn't use it. It seems that you don't have basic function of changing text color neither.

Adafruit_SSD1306 has this function. See this link. (https://github.com/adafruit/Adafruit_SSD1306/blob/master/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino)

Can you add this function? Thx :)

sjly3k commented 4 years ago

Cool :) I found this function in this package but I couldn't. If this function works in this package, All users who use this package can make more fancier haha XD

marcelstoer commented 4 years ago

Why don't you have setTextColor(FontColor,BackgroundColor) function?

We don't need it and nobody else requested it so far. However, we would certainly welcome PR to that effect by you or somebody else.

SVLoneStar commented 3 years ago

Hi - sure, this is not desperately needed. But it would be nice to be able to show lines of 'inverted' text on the display. Any other means to do this? If not, implementing this feature would be highly appreciated (by me). Thanks!

turbofex commented 3 years ago

vote yes on set text color,very useful when making menus.

turbofex commented 3 years ago

found a way around this.draw the strings,then call setColor(INVERSE) and fillRect() over the text area would do a inverted text effect.works for me. U could give it a try. @yammayamm @SVLoneStar

yammayamm commented 3 years ago

Thanks :)