slightly rework hacked display test - new code structure - split code in several functions - add task for display instead of running it in main() - functions to convert voltage to battery percent charged - show percentage and voltage on display
17 lines
369 B
C++
17 lines
369 B
C++
extern "C" {
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "esp_log.h"
|
|
|
|
#include "ssd1306.h"
|
|
#include "font8x8_basic.h"
|
|
}
|
|
|
|
|
|
//task that inititialized the display, displays welcome message
|
|
//and releatedly updates the display with certain content
|
|
void display_task( void * pvParameters );
|