avr-lc7981/main.c

55 lines
733 B
C

/*
* 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"
#include "8x8_horizontal_LSB_1.h"
#include "12x16_horizontal_LSB_2.h"
#include "button.h"
//#include "writing_demo.h"
int main(void) {
lcd_init(LCD_GRAPHIC);
lcd_clear();
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);
while(!touch_is_pressed());
//writing_demo();
return 0;
}