62 lines
1.1 KiB
C++
Executable File
62 lines
1.1 KiB
C++
Executable File
#include <stdio.h>
|
|
#include "sdkconfig.h"
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "driver/uart.h"
|
|
#include "driver/i2c.h"
|
|
#include "drivers/tft.hpp"
|
|
#include "drivers/wires.hpp"
|
|
#include "drivers/bottom_half.h"
|
|
#include "drivers/sd.hpp"
|
|
#include "drivers/game_timer.hpp"
|
|
#include "drivers/speaker.hpp"
|
|
#include "drivers/char_lcd.hpp"
|
|
#include "esp_rom_gpio.h"
|
|
|
|
#include "steps/step0.hpp"
|
|
#include "steps/step1.hpp"
|
|
#include "steps/step2.hpp"
|
|
#include "steps/step3.hpp"
|
|
#include "steps/step4.hpp"
|
|
#include "steps/step5.hpp"
|
|
#include "steps/step6.hpp"
|
|
|
|
#define WIRES_ADDR 125
|
|
#define WIRES_REG_WIRES
|
|
|
|
static const char *TAG = "main";
|
|
static void relay_task(void *arg);
|
|
|
|
extern "C" void app_main(void) {
|
|
printf("app_main\n");
|
|
|
|
init_sd();
|
|
init_tft();
|
|
init_speaker();
|
|
init_sseg();
|
|
init_game_timer();
|
|
init_wires();
|
|
set_game_time(30000);
|
|
|
|
init_bottom_half();
|
|
init_char_lcd();
|
|
|
|
step0();
|
|
step1();
|
|
step2();
|
|
step3();
|
|
step4();
|
|
step5();
|
|
step6();
|
|
|
|
// create_demo_ui();
|
|
|
|
// play_example();
|
|
|
|
// deinit_sd();
|
|
|
|
// set_game_timer(1234, 1);
|
|
// set_module_timer(5678, 2);
|
|
}
|
|
|