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

    McroPython's Inline Assembler can not be used

    FAQS
    2
    4
    6.2k
    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.
    • M
      MIN0_KABE
      last edited by

      I am enjoying MicroPython with M5Stack. I found out that you can use Inline Assembler with MycroPython while examining the Web. I tried it, but there was no error. Can I use MicroPython's Inline Assember with M5Stack? Or is it wrong to use?

      M5StackでMicroPythonを楽しんでいます。Webを調べているとMycroPythonでInline Assemblerを使えることがわかりました。試して見ましたが、エラーとないました。M5StackではMicroPythonのInline Assemberは使えないのでしょうか?それとも使い方が間違っているのでしょうか?

      MicroPython ESP32_LoBo_v3.2.16 - 2018-05-15 on M5Stack with ES information.

      @micropython.asm_thumb
      ... def uadd(r0, r1) -> uint:
      ... add(r0, r0, r1)
      ...
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      SyntaxError: invalid micropython decorator

      M 1 Reply Last reply Reply Quote 0
      • M
        MIN0_KABE @MIN0_KABE
        last edited by

        @min0_kabe Sorry, I made mistake in this line.

        "but there was no error." --> "but there was the error."

        1 Reply Last reply Reply Quote 0
        • loborisL
          loboris
          last edited by

          @min0_kabe 在 McroPython's Inline Assembler can not be used 中说:

          MicroPython's Inline Assember

          Inline assembler is not supported on ESP32.

          M 1 Reply Last reply Reply Quote 0
          • M
            MIN0_KABE @loboris
            last edited by

            @loboris I understand it. Thank you for your reply.

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