move LVGL framebuffer into PSRAM

This commit is contained in:
sharandac
2020-08-10 00:31:15 +02:00
parent 38c48df235
commit 40794d8b0a
6 changed files with 21 additions and 9 deletions

View File

@@ -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 );