Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. flyceo
    3. Posts
    F
    • Continue chat with flyceo
    • Start new chat with flyceo
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by flyceo

    • Graphic functions not working

      Hi there,

      I am new to M5Stack but already programmed some stuff for esp8266 using platformio.

      I loaded all the necessary libs and board definitions and tried a short script:

      #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();
      }
      

      Everything worked as expected.
      But then I added some Code like this:

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

      or this:

      M5.Lcd.fillScreen(TFT_RED);
      

      and suddenly the screen stay black. You can only see the backlight working. When I remove the fill... rod draw.... part, it works again. What am I doing wrong?

      Thanks,
      Roland

      posted in Arduino
      F
      flyceo
    • Probleme mit Grafikfunktionen

      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

      posted in Deutsches Forum
      F
      flyceo