Hi, Need some help waking up my MAX7219 8x32 display after sleep.
my sketch uses MD_Parola library with MD_Max7219XX. I am creating object using
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
i am using sleep function of ATMEGA328P and CPU goes to sleep properly, but when it wakes up, the display is not initializes - shows blank. i am able to access serial from CPU after it wakes up, but display is blank after wakeup. tried P.begin(); on wakeup but its not working.
my sleep function disables following
set_sleep_mode(SLEEP_MODE_PWR_SAVE);
power_adc_disable(); // ADC converter
power_spi_disable(); // SPI
power_usart0_disable(); // Serial (USART)
power_timer0_disable(); // Timer 0
power_timer1_disable(); // Timer 1
power_timer2_disable();// Timer 2
power_twi_disable(); // TWI (I2C)
and waking up with sleep_disable(); and all module gets enabled properly.
PS: sleep uses standard sleep lib of Arduino.
found some function using control() method in MD_7219XX library, but unable to access it using P object.
I believe the scan limit of MAX7219 goes back to 0 or MAX7219 goes to powerdown mode. i want to access these .
Question is how the display can be initialized again after CPU comes out of sleep.