avr-lc7981/main.c

55 lines
733 B
C
Raw Normal View History

2009-05-16 14:10:42 +02:00
/*
* main.c
*
* Created on: 01.05.2009
* Author: sebastian
*/
#include <avr/io.h>
#include <stdlib.h>
#include "include/lc7981.h"
#include "include/adc.h"
#include "include/touch.h"
2009-05-21 13:55:55 +02:00
#include "8x8_horizontal_LSB_1.h"
#include "12x16_horizontal_LSB_2.h"
#include "button.h"
//#include "writing_demo.h"
2009-05-16 17:26:18 +02:00
2009-05-16 14:10:42 +02:00
int main(void) {
2009-05-16 14:10:42 +02:00
2009-05-21 13:55:55 +02:00
lcd_init(LCD_GRAPHIC);
2009-05-21 13:55:55 +02:00
lcd_clear();
2009-05-21 13:55:55 +02:00
2009-05-21 13:55:55 +02:00
lcd_plot_text(5,5,"Hello",16,16,font_12x16);
lcd_plot_pgmtext(50,22,PSTR("World"),12,16,font_12x16);
lcd_plot_pgmtext(5,40,PSTR("qwertzuiop"),8,8,font_8x8);
lcd_plot_pgmtext(5,50,PSTR("asdfghjkl"),8,8,font_8x8);
lcd_plot_pgmtext(5,60,PSTR("yxcvbnm"),8,8,font_8x8);
2009-05-16 14:10:42 +02:00
while(!touch_is_pressed());
2009-05-16 14:10:42 +02:00
//writing_demo();
2009-05-16 14:10:42 +02:00
return 0;
}