Skip to content

u8g2Fonts for Vision Master E213 #26

Description

@utpluvia

Hi!
Is this possible to use u8g2 Fonts for this display?
I tried to do as follows

#include <U8g2_for_Adafruit_GFX.h>
U8G2_FOR_ADAFRUIT_GFX u8g2Fonts;
Setup(){
u8g2Fonts.begin(*(Adafruit_GFX*)&display);
  u8g2Fonts.setFont(u8g2_font_helvB10_tf);   // Explore u8g2 fonts from here:
 u8g2Fonts.print("text);
display.update();
}

my sketch was succesfully compiled, but no text appeared on the screen.
The way I did it before
u8g2Fonts.begin(display);
would cause an error
error: cannot convert 'LCMEN2R13EFC1' to 'Adafruit_GFX&'
therefore I'm using type casting
u8g2Fonts.begin(*(Adafruit_GFX*)&display);
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions