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

    Probleme mit Grafikfunktionen

    Deutsches Forum
    1
    1
    3.8k
    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.
    • F
      flyceo
      last edited by

      Hallo zusammen,

      ich bin neu bei M5Stack und habe ein Problem im Zusammenhang mit platformio. Ich habe damit schon öfter was für den ESP8266 programmiert, aber irgendwie komme ich momentan nicht weiter. Ich habe einen funktionierenden Code-Schnipsel:

      #include <M5Core2.h>
      
      void setup(){
      
        // Initialize the M5Stack object
        M5.begin();
      
        // LCD display
        M5.Lcd.print("Hello world!");
        
      }
      
      // the loop routine runs over and over again forever
      void loop() {
          M5.update();
      }
      

      Das funktioniert wie es soll.
      Baue ich jetzt jedoch ein

      M5.Lcd.fillRect(10, 10, 100, 100, TFT_YELLOW);
      

      oder ein

      M5.Lcd.fillScreen(TFT_RED);
      

      Lässt sich das Ganze auch noch problemlos übertragen, nur der Bildschirm bleibt schwarz. Was mache ich denn falsch?

      Danke!

      Roland

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