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

    when call TFT_eSprite drawString, crash down

    Micropython
    1
    1
    2.3k
    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.
    • Y
      yaohuarun
      last edited by

      when i call TFT_eSprite method drawString, system crash down and reboot, code as following:

      M5.Lcd.fillScreen(TFT_BLACK);
      TFT_eSprite tftSprite = TFT_eSprite(&M5.Lcd);
      tftSprite.createSprite(320, 120);
      while (true)
      {
      if(SoundWave::suspend) {
      TaskHandle_t hTask = xTaskGetCurrentTaskHandle();
      vTaskSuspend(hTask);
      }
      uint32_t ulNotificationValue = ulTaskNotifyTake(pdTRUE, xMaxBlockTime);
      if (ulNotificationValue > 0)
      {
      tftSprite.fillSprite(TFT_BLACK);
      tftSprite.drawString("hello",10,20,TFT_WHITE);
      tftSprite.pushSprite(0,60);
      }
      }
      why?

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