Jump to content

Recommended Posts

Posted (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 by Vinc_Vega
Edit after a look into the zip file

Regards, Vinc

real life: Royal Bavarian Airforce

online: VJS-GermanKnights.de

[sIGPIC][/sIGPIC]

Posted

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)

Posted
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.

Posted
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?

Posted

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...

Posted

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...

Posted (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 by Rolfez
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...