Main.c


1
#include <avr/io.h>
2
#include <inttypes.h>
3
#include <avr/interrupt.h>
4
#include <util/delay.h>
5
#include <avr/eeprom.h>
6
7
#include "inits_LCD.h"
8
9
10
int main(void)
11
{
12
  _delay_ms(1000);
13
  
14
  init_ports_LCD();         //LCD INIT
15
  init_lcd();
16
  display_on();
17
  display_clear();
18
  
19
  move_cursor(2,1);
20
  send_string("START");
21
  move_cursor(3,2);
22
  send_string("AUFRUF");
23
  _delay_ms(1000);
24
  
25
  
26
  eeprom_write_byte((uint8_t*)8, 4);    //EEPROM beschreiben
27
  
28
  
29
  display_clear();
30
  
31
  move_cursor(2,1);
32
  send_string("ERFOLG");
33
34
  
35
  while(1)
36
  {
37
  
38
  
39
  }
40
  return 0;
41
}