int appUpdate(uint32_t ticks) { gfxUpdate(ticks); inputUpdate(ticks); consoleUpdate(ticks); videoUpdate(); return 1; }
int draw_delete_dialouge(void) { draw_clearscrn(); // Top screen already selected form draw_clearscrn printf("\n\n\n\t\t%sDelete %-35.35s%s", FG_RED, file_arr[selected+scroll].name, RESET); printf("\n\n\t\t[A] - Yes\n\t\t[B] - No"); while (appletMainLoop()) { consoleUpdate(NULL); hidScanInput(); u32 exitkDown = hidKeysDown(CONTROLLER_P1_AUTO); if (exitkDown & KEY_A) { return 0; } else if (exitkDown & KEY_B) { return 1; } consoleUpdate(NULL); //gfxFlushBuffers(); //gfxSwapBuffers(); } // If something goes wrong (+ stops compile warning) return 1; }
int main(){ //char *ptr =(char*)getDataPtr(0); uart0Init(); sei(); uart0PutString("MPU\n\r"); uart0SetStdout(); consoleInit(); i2c_init(); addTool(&mpu6050Tool, "mpu"); while(1){ consoleUpdate(); } return 0; }
void loop(){ consoleUpdate(); }