Commit f14db376 authored by Martin Vítek's avatar Martin Vítek
Browse files

Add some basic screens

parent 2a795722
#pragma once
#include <stdint.h>
#define MAX_LENGHT 15
......@@ -20,9 +22,25 @@ enum symbols
//MAX "xxxxxxxxxxxxxxx"
struct soldering_screen
{
const char* temperatures = "SET ACT ";
const char* power = "PWR ###########";
const uint8_t y
};
struct menu
{
const char* show_status = "Show status";
const char* settings = "Settings";
};
struct settings
{
const char* standby = "Set standby time";
const char* backlight = "Set backlight";
const char* pdi = "Set PID params";
};
struct status_screen
......
......@@ -6,6 +6,7 @@
#include "SafeSolderingStation.h"
#include "Render.h"
//TODO: params in EEPROM
void find_character(uint8_t character);
......@@ -40,21 +41,24 @@ int main()
//find_character(character);
status_screen status;
soldering_screen solder;
sss.lcd.gotoxy_new(0,0);
sss.lcd.write_text(status.supply_voltage);
sss.lcd.write_char(ARROW_UP);
//sss.lcd.write_text(status.supply_voltage);
sss.lcd.write_text(solder.temperature_current);
//sss.lcd.write_char(ARROW_UP);
sss.lcd.gotoxy_new(1,0);
sss.lcd.write_text(status.supply_voltage);
sss.lcd.write_char(ARROW_DOWN);
//sss.lcd.write_text(status.supply_voltage);
sss.lcd.write_text(solder.temperature_set);
//sss.lcd.write_char(ARROW_DOWN);
for(;;)
{
//sss.test_encoder();
//sss.test_backlight();
sss.test_adc();
//sss.test_adc();
_delay_ms(100);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment