45 lines
960 B
C
45 lines
960 B
C
#include "dashboard.h"
|
|
#include "font.h"
|
|
#include "monomaniacone20pt.h"
|
|
#include "monomaniacone72pt.h"
|
|
|
|
void run_dashboard_loop() {
|
|
|
|
init();
|
|
while(1) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void init() {
|
|
LCD_Init();
|
|
|
|
// draw base
|
|
|
|
|
|
// Test drawing text
|
|
//char text[] = "test bro";
|
|
//LCD_Draw_Text(&text, 30, 100, WHITE, 20, RED);
|
|
|
|
GFX_DrawChar(40, 40, '!', &monomaniacone20pt, BLACK, WHITE);
|
|
GFX_DrawChar(60, 40, '2', &monomaniacone20pt, BLACK, WHITE);
|
|
GFX_DrawChar(80, 40, '3', &monomaniacone20pt, BLACK, WHITE);
|
|
GFX_DrawChar(100, 40, '4', &monomaniacone20pt, BLACK, WHITE);
|
|
GFX_DrawChar(120, 40, '5', &monomaniacone20pt, BLACK, WHITE);
|
|
|
|
|
|
GFX_DrawText(470/2, 150, "BONJOUR !", &monomaniacone20pt, RED, BLACK, 1);
|
|
GFX_DrawText(470/2, 250, "01234", &monomaniacone72pt, ORANGE, BLACK, 1);
|
|
|
|
}
|
|
void update_values() {
|
|
// UART send 0201 04 4084 03
|
|
}
|
|
void update_values_setup() {
|
|
// UART send 0201 2F D58D 03
|
|
}
|
|
void update_adc() {
|
|
// UART send 0201 20 2462 03
|
|
}
|