Line 1... |
Line 1... |
1 |
//Program pro vyzkouseni funkcnosti modulu s LCD a mikropocitacem ATmega8 |
1 |
//Program pro vyzkouseni funkcnosti modulu s LCD a mikropocitacem ATmega8 |
2 |
//MLAB 21.11.2011 (JACHO) |
2 |
//MLAB 21.11.2011 (JACHO) |
3 |
|
3 |
|
4 |
//vytvoreno v programu AVR studio 4 |
4 |
//vytvoreno v programu AVR studio 4 |
5 |
|
5 |
|
- |
|
6 |
//Propojení pinù modulu s LCD a ATmega8 (jejich nastavení se provádí v lcd.h) |
- |
|
7 |
//PIN_D0 PC3 |
- |
|
8 |
//PIN_D1 PB4 |
- |
|
9 |
//PIN_D2 PB5 |
- |
|
10 |
//PIN_D3 PB3 |
- |
|
11 |
//PIN_E PB1 |
- |
|
12 |
//PIN_RS PB2 |
- |
|
13 |
|
6 |
#include <avr/io.h> |
14 |
#include <avr/io.h> |
7 |
#include <stdio.h> |
15 |
#include <stdio.h> |
8 |
#include <avr/iom8.h> |
16 |
#include <avr/iom8.h> |
9 |
#include "lcd.h" |
17 |
#include "lcd.h" |
10 |
#include "lcd.c" |
18 |
#include "lcd.c" |