main.cpp 735 Bytes
Newer Older
1
#include <avr/io.h>
2
#include <avr/interrupt.h>
3
#include <util/delay.h>
4
#include <stdint.h>
5

6
#include "SafeSolderingStation.h"
Martin Vítek's avatar
Martin Vítek committed
7
#include "Render.h"
Martin Vítek's avatar
Martin Vítek committed
8

9

10
11
int main()
{
12
13
    sss.init();
    sss.wellcome();
14

Martin Vítek's avatar
Martin Vítek committed
15
    /*
Martin Vítek's avatar
Martin Vítek committed
16
    sss.lcd.gotoxy_new(0,0);
17
    sss.lcd.write_text("3V4:     ");
Martin Vítek's avatar
Add ADC    
Martin Vítek committed
18
19

    sss.lcd.gotoxy_new(1,0);
20
    sss.lcd.write_text("24V:     V");
Martin Vítek's avatar
Martin Vítek committed
21
22
23
24
25
26
27
28
29
30
31
32
    */

    status_screen status;

    sss.lcd.gotoxy_new(0,0);
    sss.lcd.write_text(status.supply_voltage);
    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);

Martin Vítek's avatar
Martin Vítek committed
33

34
35
    for(;;)
    {
Martin Vítek's avatar
Martin Vítek committed
36
        //sss.test_encoder();
Martin Vítek's avatar
Add ADC    
Martin Vítek committed
37
38
        //sss.test_backlight();
        sss.test_adc();
Martin Vítek's avatar
Martin Vítek committed
39
        _delay_ms(100);
40
    }
41
}