🤖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

    Core 2
    3
    4
    3.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.
    • G
      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
        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
          greenhorn
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • AsmodevA
            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
            • First post
              Last post