add an example app structe

This commit is contained in:
sharandac
2020-08-03 16:11:37 +02:00
parent 489b01809d
commit 04299d4f86
20 changed files with 1010 additions and 20 deletions

View File

@@ -70,6 +70,7 @@ void bma_standby( void ) {
if ( bma_get_config( BMA_STEPCOUNTER ) )
ttgo->bma->enableStepCountInterrupt( false );
}
void bma_wakeup( void ) {
@@ -77,6 +78,9 @@ void bma_wakeup( void ) {
if ( bma_get_config( BMA_STEPCOUNTER ) )
ttgo->bma->enableStepCountInterrupt( true );
stepcounter =+ ttgo->bma->getCounter();
statusbar_update_stepcounter( stepcounter );
}
/*
@@ -102,7 +106,6 @@ void IRAM_ATTR bma_irq( void ) {
{
portYIELD_FROM_ISR ();
}
// rtc_clk_cpu_freq_set( RTC_CPU_FREQ_240M );
setCpuFrequencyMhz( 240 );
}

View File

@@ -52,7 +52,7 @@ static bool touch_getXY( int16_t &x, int16_t &y ) {
if ( !touch_press ) {
touch_press = true;
motor_vibe( 2 );
motor_vibe( 1 );
}
p = ttgo->touch->getPoint();