MAX7219 32x32 LED Display
-
kaqkk007
- Posts: 81
- http://meble-kuchenne.info.pl
- Joined: Sat Feb 04, 2023 1:09 pm
- Has thanked: 4 times
- Been thanked: 4 times
Re: MAX7219 32x32 LED Display
Is it possible that the display is interfering with the RTC's operation? I'm using the display on Channel 1 and the DS3231 on pins RB0 and RB1. It reads and displays the values, but I can't configure the RTC.
- Attachments
-
- max7219_4DIG.7.fcfx
- (32.95 KiB) Downloaded 14 times
-
mnfisher
- Valued Contributor
- Posts: 2044
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 161 times
- Been thanked: 950 times
Re: MAX7219 32x32 LED Display
I think the issue is that you are calling RTC nearly 20,000 timer per second.
I would try and move the RTC setting to outside of the interrupt handler (possibly set a flag in the interrupt handler 'set_clock') and test this in main - or set an interrupt on the button presses and test for this in main)
I'd also reduce the 'update' rate of the display (once per second should be sufficient?)
Martin
I would try and move the RTC setting to outside of the interrupt handler (possibly set a flag in the interrupt handler 'set_clock') and test this in main - or set an interrupt on the button presses and test for this in main)
I'd also reduce the 'update' rate of the display (once per second should be sufficient?)
Martin
Re: MAX7219 32x32 LED Display
It works in other classes whether I call it from an interrupt or run it from the main program, so I don't understand why it doesn't work here (just the setup); reading the value works perfectly.The refresh rate is set to once per minute, and that's when I set the value
- Attachments
-
- max7219_4DIG.8.fcfx
- (28.63 KiB) Downloaded 14 times