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

    Glass2

    Scheduled Pinned Locked Moved Units
    3 Posts 2 Posters 2.7k Views
    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.
    • T Offline
      tonyd
      last edited by

      Hi All

      I've got a Glass2 unit attached to a Atom Lite via a grove cable. I can't find any documentation around how to access it. In UIFLOW2, I've found a init block that gives this code

      def setup():
        global i2c0, glass2_0
      
        M5.begin()
        i2c0 = I2C(0, scl=Pin(32), sda=Pin(26), freq=100000)
        glass2_0 = M5.addDisplay(i2c0, 0x3c, {"unit_glass2":True})
      

      But I can't se how to access the glass to write text. Has anyone managed to do this?

      Thanks

      Tony

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR Offline
        robski @tonyd
        last edited by robski

        https://docs.m5stack.com/en/unit/Glass Unit?id=protocol

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv, M5StackChan

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tonyd @robski
          last edited by

          @robski Thanks

          I was looking on the GLASS2 page and there are no UIFLOW examples on there. I have come to the conclusion that GLASS2 is not fully implemented in UIFLOW2 as when I went back to UIFLOW1 there is a whole load of methods exposed on there. I may just have to learn a bit more about I2C and code via the Arduino IDE

          Tony

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post