Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. yaohuarun
    Y
    • Continue chat with yaohuarun
    • Start new chat with yaohuarun
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    yaohuarun

    @yaohuarun

    0
    Reputation
    2
    Posts
    530
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    yaohuarun Follow

    Posts made by yaohuarun

    • when call TFT_eSprite drawString, crash down

      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?

      posted in Micropython
      Y
      yaohuarun
    • can uart support irq?

      I run following code in m5stack fire board

      from machine import UART
      uart1 = UART(1, tx=1, rx=3)
      uart1.init(115200, bits=8, parity=None, stop=1)
      def UART_ISR(t):
      uart1.irq(handler=UART_ISR)

      bu report error message:
      'UART' object has no attribut 'irq'.
      does uiflow support irq?

      posted in UIFlow
      Y
      yaohuarun