Hello, I have been getting into Arduino for one year, and to date have been mostly focusing on Arduino/CPP coding and learning. Now I am ready to interface with the world, and bought the Arduino Seeed Sensor Kit, love it. Question: For the oled screen, is it possible (or easy) to find a library that offers larger font sizes than 8x8 pixels? I want an easier to read font size, to display RH values. Also, while I am happy to have it, what is the general use of such a small screen, in practice? Thanks for any input from experienced Arduino people! Steven Lightfoot, Canada.
Have you tried something along the lines of oled.setTextSize(2);
?
Which library are you using with the display?
U8g2 does not have the setTextSize() function, that is from Adafruit's library. Both of those libraries will have multiple fonts that are different sizes.
I started with the basic Arduino sensor kit library: Arduino_SensorKit.h, I then looked at the actual Seed library for the oled: SeeedOLED.h
I dont find either really easy to understand, in terms of the functionality of the class, maybe its really obvious but I haven't figured it out yet. I read in a bunch of places that the max font size is 8x8 but I have hard time believing that.
I will try that thanks. I am using the library Arduino_SensorKit.h at the moment.
This might be helpful
Getting something useful from the SSD1306 OLED
Hi, look at the library rep, there are always examples you can learn from : https://github.com/Seeed-Studio/OLED_Display_128X64/tree/master/examples
I`m using Adafruit_SSD1306/Adafruit GFX with oled displays and with this tool, you can make custom fonts of any size from any true type font: https://rop.nl/truetype2gfx/
Cheers.
Excellent thanks I will investigate.
Thx appreciate, the oled is nice to have, I am grateful, but also its so small it has limited applications, ideally I would think it is most useful with large font using limited characters to display say, temp or RH, with value and units, but nothing more.
Yes, sadly it`s very small, and low resolution, but could be useful for small gadgets or instruments.. For example:
Thanks, that is a perfect example of the kind of thing I want to do, just a limited number of larger chars. Excellent.
Hey there, so I looked at the Seeed library you pointed to, and that was great. I did already actually play with some examples, which are always good. Do you know if within those folders there is any easy to read and understand document that actually details all the functions of the oled Class and how each one works? That would be really useful. rather than learning by trial and error from examples. I will also look at your Adafruit reference (didnt yet get the time).
OK I found a keyword list, which helps, I think I need now to take the time and properly troll through the documents in that folder.
The other thing I notice is that the Seeed library seems to use different function keywords etc than the Arduino sensor kit library, which does not appear to have much documentation. The syntax for both is similar looking, but it is materially different. I have to assume that Seeed and Arduino oled libraries are simply different, although both work, with the right syntax.
Hi , I just pointed to Seed library examples... I actually recommended Adafruit_SSD1306/Adafruit GFX libraries, that`s what I used along with font maker.
Yeah cool I got that, I will def go there. Really appreciate.
That is exactly how I have it, and hence the use of the Adafruit ASCII libraries alluded to in the old post. I wouldn't be rushing to use any graphics library with this display.
ok excellent. I will study closely. One thing I picked up on, in the instructions from Arduino for the sensor kit was a reference to: U8g2 library. Do you have any experience with this?
ok thank you. I am new to this subject, so its an overwhelming sea of information at the moment, but it is slowly starting to crystalize.
Hi Nick, I looked at your references, thank you. I did a little more noodling, and after reading the U8G2 documentation, the fog started to lift and I have managed to make some progress, and can now write in much larger font size, readable anyway. It appears the used has a lot of control with the U8G2 lib once you know how to use it. It does take some flash RAM apparently, which for me at this time is not an issue. Cheers. Steven Lightfoot