2022-07-11 20:33:51 +00:00
|
|
|
/*
|
|
|
|
* This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
* Unless required by applicable law or agreed to in writing, this
|
|
|
|
* software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
|
* CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
*/
|
2022-06-20 21:14:16 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-07-02 18:55:10 +00:00
|
|
|
// For pin mappings.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "hardware.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// For graphics.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "pax_gfx.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// For PNG images.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "pax_codecs.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// The screen driver.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "ili9341.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// For all system settings and alike.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
|
|
|
#include "freertos/queue.h"
|
|
|
|
#include "esp_system.h"
|
|
|
|
#include "nvs.h"
|
|
|
|
#include "nvs_flash.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// For WiFi connectivity.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "wifi_connect.h"
|
|
|
|
#include "wifi_connection.h"
|
2022-07-02 18:55:10 +00:00
|
|
|
// For exiting to the launcher.
|
2022-06-20 21:14:16 +00:00
|
|
|
#include "soc/rtc.h"
|
|
|
|
#include "soc/rtc_cntl_reg.h"
|
|
|
|
|
2022-07-02 18:55:10 +00:00
|
|
|
// Updates the screen with the last drawing.
|
2022-06-20 21:14:16 +00:00
|
|
|
void disp_flush();
|
2022-07-02 18:55:10 +00:00
|
|
|
|
|
|
|
// Exits the app, returning to the launcher.
|
2022-06-20 21:14:16 +00:00
|
|
|
void exit_to_launcher();
|