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

    Core 2 Factory Test Progress Bar

    Scheduled Pinned Locked Moved Core 2
    4 Posts 3 Posters 4.9k 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.
    • G Offline
      greenhorn
      last edited by

      Hi All,

      Just got my Core 2 and started playing with the factory demo that came out of the box. I like the homage to Evangelion in the layout on the top right. ;)

      I wanted to replicate the diagonal progress bar on the top of the timer for my own project.
      0_1662708177414_ac63296a-7739-47bb-a624-bfe0de5fc634-image.png

      How is this done? I checked the source code in the link below but it is quite condensed and hard to find since there seems to be 3 sprites/images doing something similar.
      https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Core/M5Core2/Arduino/Core2_Factory_test

      Could you please point me in the right direction?

      Thanks,

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @greenhorn

        it's part of the clockFlush() function. Six images loaded sequentially over and over.

            sytState.clockCount ++;
            sytState.clockCount %= 6;
            DisClockbuff.drawColorBitmap(0,0,164,17,
                                    rectptrBuff[sytState.clockCount],
                                    0xff9c00,
                                    0x000000);
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 1
        • G Offline
          greenhorn
          last edited by

          Thanks, I'll check it out and give it a try.

          1 Reply Last reply Reply Quote 0
          • AsmodevA Offline
            Asmodev
            last edited by

            My core2 makes a noise when i install the factory software using arduino or the built in burner, also it does nothing, i can’t seem to get it back onto the device, what gives? I’ve connected to serial port, burned the test and then all i hear is a low pitch noise… Anyone know about this?

            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