void TiLDATask::task() { Tilda::_realTimeClock = new RTC_clock(RC); SettingsStore* settingsStore = new SettingsStore; Tilda::_appManager = new AppManager; MessageCheckTask* messageCheckTask = new MessageCheckTask; Tilda::_dataStore = new DataStore(*messageCheckTask); Tilda::_rgbTask = new RGBTask; ButtonTask* buttonTask = new ButtonTask; RadioReceiveTask* radioReceiveTask = new RadioReceiveTask(*messageCheckTask, *Tilda::_realTimeClock); RadioTransmitTask* radioTransmitTask = new RadioTransmitTask(*radioReceiveTask, *settingsStore, *messageCheckTask); AppOpenerTask* appOpenerTask = new AppOpenerTask(*Tilda::_appManager); Tilda::_lcdTask = new LCDTask; Tilda::_badgeNotifications = new BadgeNotifications(*settingsStore, *messageCheckTask, *Tilda::_appManager); Tilda::_guiTask = new GUITask; Tilda::_realTimeClock->init(); // Background tasks Tilda::_rgbTask->start(); buttonTask->start(); messageCheckTask->start(); radioReceiveTask->start(); radioTransmitTask->start(); Tilda::_lcdTask->start(); Tilda::_guiTask->start(); appOpenerTask->start(); PMIC.start(); Tilda::openApp(HomeScreenApp::New); suspend(); }
void TiLDATask::task() { GLCD.TaskOneInit(); Tilda::_realTimeClock = new RTC_clock(RC); Tilda::_appManager = new AppManager; MessageCheckTask* messageCheckTask = new MessageCheckTask; SettingsStore* settingsStore = new SettingsStore(*messageCheckTask); Tilda::_dataStore = new DataStore(*messageCheckTask); Tilda::_rgbTask = new RGBTask; Tilda::_soundTask = new SoundTask; Tilda::_settingsStore = settingsStore; Tilda::_batterySaverTask = new BatterySaverTask; RadioReceiveTask* radioReceiveTask = new RadioReceiveTask(*messageCheckTask, *Tilda::_realTimeClock); Tilda::_radioReceiveTask = radioReceiveTask; RadioTransmitTask* radioTransmitTask = new RadioTransmitTask(*radioReceiveTask, *settingsStore, *messageCheckTask); AppOpenerTask* appOpenerTask = new AppOpenerTask(*Tilda::_appManager); Tilda::_lcdTask = new LCDTask; Tilda::_badgeNotifications = new BadgeNotifications(*settingsStore, *messageCheckTask, *Tilda::_appManager); Tilda::_guiTask = new GUITask; Tilda::_guiTask->setOrientation(ORIENTATION_HELD); Tilda::_realTimeClock->init(); // Background tasks Tilda::_rgbTask->start(); Tilda::_soundTask->start(); Tilda::_batterySaverTask->start(); messageCheckTask->start(); radioReceiveTask->start(); radioTransmitTask->start(); Tilda::_lcdTask->start(); GLCD.DrawBitmap(TiLDA_Logo_64x128, 0, 0); Tilda::_guiTask->start(); appOpenerTask->start(); PMIC.start(); imuTask.start(); Tilda::delay(BOOT_SCREEN_TIME); Tilda::openApp(HomeScreenApp::New); suspend(); }