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

    How to access LCD directly in micro python and UIFlow 2

    UiFlow 2.0
    3
    4
    1.6k
    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.
    • J
      jamesarm97
      last edited by

      I want to do some custom code in a function that needs to access the screen module directly. I have the import * from M5 and other imports but when I try lcd.function it says object has no attribute 'lcd'. How would I do some lower level draw functions / screen functions? Is there any module / lib source code that I can look at to see what functions are available like from the Widget module?

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        if you use UIFlow you can switch the workspace to code view and see the UI function codes

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • C
          codeblue
          last edited by

          @ajb2k3 is is possible to use M5 libraries directly in naive micropython firmware?

          ajb2k3A 1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3 @codeblue
            last edited by

            @codeblue no because the M5 libraries are not part of native Micropython.
            For Mainstream Micropython you will need to find the equivalent Micropython libraries and add them to Micropython using Thonny.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

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