🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to display UTF8 characters in M5Stack Fire

    M5Stack Fire
    1
    1
    146
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gbastos
      last edited by

      Hello everyone,

      I'm dealing with M5Stack Fire, and I'm trying to display Portuguese characters on display, until now without success.

      So basically a simple program like

      #include <M5Stack.h>
      
      void setup() {
        // Initialize the M5Stack
        M5.begin();
        
        // Clear the screen and display a message
        M5.Lcd.clear();
        M5.Lcd.setCursor(50, 50);
        M5.Lcd.print("Configuração está ok"); //Meaning: configuration it's ok
      }
      
      void loop() {
        // No need to put anything in loop for this example
      }
      
      

      But this does not print the ç character, ã or even á.
      I tried to load a custom font, but this is not good, because then I can't set it's size dynamically.

      Is there any way to make the M5Stack fire support these characters?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post