Core 2 Factory Test Progress Bar
-
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.
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_testCould you please point me in the right direction?
Thanks,
-
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 -
Thanks, I'll check it out and give it a try.
-
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?