m5stick No Module Named 'Hat'

  • I have an m5StickC with a speaker hat. I tried uploading a basic program from the UI Flow Desktop app to my m5Stick:


    But the m5Stick is display the error 'no module named hat'


    How can I get the m5stick to recognize the speaker hat code from UI Flow?