move LVGL framebuffer into PSRAM
This commit is contained in:
@@ -114,7 +114,6 @@ void IRAM_ATTR bma_irq( void ) {
|
||||
{
|
||||
portYIELD_FROM_ISR ();
|
||||
}
|
||||
setCpuFrequencyMhz( 240 );
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -125,7 +124,9 @@ void bma_loop( TTGOClass *ttgo ) {
|
||||
* handle IRQ event
|
||||
*/
|
||||
if ( xEventGroupGetBitsFromISR( bma_event_handle ) & BMA_EVENT_INT ) {
|
||||
while( !ttgo->bma->readInterrupt() );
|
||||
setCpuFrequencyMhz(240);
|
||||
|
||||
while( !ttgo->bma->readInterrupt() );
|
||||
if ( ttgo->bma->isDoubleClick() ) {
|
||||
powermgm_set_event( POWERMGM_BMA_WAKEUP );
|
||||
xEventGroupClearBitsFromISR( bma_event_handle, BMA_EVENT_INT );
|
||||
|
||||
@@ -83,16 +83,26 @@ void powermgm_loop( TTGOClass *ttgo ) {
|
||||
display_wakeup();
|
||||
|
||||
timesyncToSystem();
|
||||
ttgo->startLvglTick();
|
||||
lv_disp_trig_activity(NULL);
|
||||
|
||||
wifictl_wakeup();
|
||||
Serial.printf("Total heap: %d\r\n", ESP.getHeapSize());
|
||||
Serial.printf("Free heap: %d\r\n", ESP.getFreeHeap());
|
||||
Serial.printf("Total PSRAM: %d\r\n", ESP.getPsramSize());
|
||||
Serial.printf("Free PSRAM: %d\r\n", ESP.getFreePsram());
|
||||
|
||||
ttgo->startLvglTick();
|
||||
lv_disp_trig_activity(NULL);
|
||||
}
|
||||
else {
|
||||
ttgo->stopLvglTick();
|
||||
|
||||
Serial.printf("Total heap: %d\r\n", ESP.getHeapSize());
|
||||
Serial.printf("Free heap: %d\r\n", ESP.getFreeHeap());
|
||||
Serial.printf("Total PSRAM: %d\r\n", ESP.getPsramSize());
|
||||
Serial.printf("Free PSRAM: %d\r\n", ESP.getFreePsram());
|
||||
display_standby();
|
||||
mainbar_jump_to_maintile( LV_ANIM_OFF );
|
||||
|
||||
ttgo->stopLvglTick();
|
||||
timesyncToRTC();
|
||||
|
||||
bma_standby();
|
||||
|
||||
Reference in New Issue
Block a user