Page 6 of 6

Re: MAX7219 32x32 LED Display

Posted: Sun Jun 07, 2026 7:29 pm
by mnfisher
I would also remove the Refresh (from DispChar) - and draw all the characters before calling Refresh (the component buffers them)

So Clear Draw(hours), Draw(mins), Draw(secs) Refresh() (or similar)

Martin

Re: MAX7219 32x32 LED Display

Posted: Sun Jun 07, 2026 8:28 pm
by mnfisher
The second 'update' method in the main loop also has an issue.

The 'button' or signal needs to come at exactly the right time... This might not be such an issue if the use presses and holds the button (for longer than - but if it is a digital signal then getting the timing 'just so' is problematic.

I would try using an interrupt to record a button press (A0/A1 changes to high) - and there is a possible need for some debounce if it is a button.
In the button_press ISR -> set_flag = true. This is easiest using INT0 or INT1 on D2 / D3.

Then in program loop..

if set_flag then
setup_RTC
set_flag = false

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 3:07 pm
by kaqkk007
I think I've found the root of the problem: when I pressed the button in the settings, it didn't increment the variable's value; the calculation was missing: `hour = hour + 1`, `min = min + 1`, ... A trivial mistake...

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 3:47 pm
by mnfisher
Good work ..

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 5:44 pm
by kaqkk007
bug .....

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 5:53 pm
by mnfisher
"A documented bug is a feature"

- but not sure where the quote is from?

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 5:59 pm
by kaqkk007
The function was missing from the program I wrote; it was entirely my fault.I skipped the calculation...We'll be testing the updated version soon

Re: MAX7219 32x32 LED Display

Posted: Mon Jun 08, 2026 9:12 pm
by mnfisher
Please let us know how it goes.....

Martin

Re: MAX7219 32x32 LED Display

Posted: Thu Jun 11, 2026 7:04 pm
by kaqkk007
That's as far as we've gotten so far I'm about to start designing the "custom numbers"
https://youtu.be/Ihku_Cox9Dk