jonny_ji7 22f8aef8d2 Move code from main to control.cpp, display pages
- move code from testing task to control.cpp
- outsource functions for initializing display and encoder
- delete testing code
- add two display pages (current distance and counter)
- run handle functions for each button
2022-08-17 13:08:05 +02:00

23 lines
378 B
C++

#pragma once
extern "C"
{
#include <stdio.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_idf_version.h>
#include "freertos/queue.h"
#include "esp_system.h"
#include "esp_log.h"
#include <max7219.h>
#include "rotary_encoder.h"
}
#include "config.hpp"
#include "gpio_evaluateSwitch.hpp"
#include "buzzer.hpp"
void task_control(void *pvParameter);