Vinc_Vega Posted June 25, 2024 Posted June 25, 2024 (edited) @Rolfez In the posts before it looks like U8glib is the graphics library in use in the zip file. The other sketches use the Adafruit GFX library. Regards, Vinc Edited June 25, 2024 by Vinc_Vega Edit after a look into the zip file Regards, Vinc real life: Royal Bavarian Airforce online: VJS-GermanKnights.de [sIGPIC][/sIGPIC]
Rolfez Posted June 29, 2024 Posted June 29, 2024 Thanks for the tips all, I've got it working! The only issue I have is that the font size is quite small for the OLEDS, I can't seem to find documentation on increasing it? (U8glib Library)
No1sonuk Posted June 29, 2024 Posted June 29, 2024 4 hours ago, Rolfez said: Thanks for the tips all, I've got it working! The only issue I have is that the font size is quite small for the OLEDS, I can't seem to find documentation on increasing it? (U8glib Library) IIRC, you tell it which font to use, and that includes the size.
Vinc_Vega Posted June 30, 2024 Posted June 30, 2024 (edited) Here is a reference to choose from fonts for the U8glib: https://github.com/olikraus/u8glib/wiki/fontsize For better flexibility and results you may change to the newer U8g2 library. Regards, Vinc Edited June 30, 2024 by Vinc_Vega Link to U8g2 added Regards, Vinc real life: Royal Bavarian Airforce online: VJS-GermanKnights.de [sIGPIC][/sIGPIC]
Rolfez Posted June 30, 2024 Posted June 30, 2024 5 hours ago, Vinc_Vega said: Here is a reference to choose from fonts for the U8glib: https://github.com/olikraus/u8glib/wiki/fontsize For better flexibility and results you may change to the newer U8g2 library. Regards, Vinc Thanks Vinc, I'm using the custom "Hornet" font though so I'm not sure I can overide the sizes....
No1sonuk Posted June 30, 2024 Posted June 30, 2024 3 hours ago, Rolfez said: Thanks Vinc, I'm using the custom "Hornet" font though so I'm not sure I can overide the sizes.... Maybe edit the font to be bigger? Where did the font come from?
No1sonuk Posted June 30, 2024 Posted June 30, 2024 14 hours ago, Vinc_Vega said: Here is a reference to choose from fonts for the U8glib: https://github.com/olikraus/u8glib/wiki/fontsize For better flexibility and results you may change to the newer U8g2 library. Regards, Vinc Annoyingly, the font converter bdfconv won't run on my 64-bit Win 11 machine.
Rolfez Posted July 1, 2024 Posted July 1, 2024 Me too, I wonder if there is other software ? m I'll have a search
No1sonuk Posted July 1, 2024 Posted July 1, 2024 I've been trying to get a converted TTF font to run through the Adafruit GFX / 1306 libraries, but I've come to the conclusion the Nano isn't the Arduino for the job. I'll try a Mega...
No1sonuk Posted July 1, 2024 Posted July 1, 2024 Well I have a Hornet UFC font displaying almost full height using the Adafruit GFX library on a 128x32 OLED, but it won't display more than 4 characters, and it won't shift to the right far enough to add the ":" without clipping. I can't try U8G2 as there is apparently no way to convert a font for it if you don't have a 32-bit OS PC...
No1sonuk Posted July 2, 2024 Posted July 2, 2024 Found this U8G2 full example: The font isn't quite as big as the GFX one I was using, but it works
Rolfez Posted July 3, 2024 Posted July 3, 2024 (edited) I've finally got it working... It was the initialization for the Oleds causing them to display too small.... I used: U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C // Initialize I2C buses using TCA9548A I2C Multiplexer And now all working! It was trial and error but basically used one at a time from the example code provided until it worked correctly. Thanks for the advice everyone! Edited July 3, 2024 by Rolfez
Recommended Posts