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"
|
2009-06-01 15:03:09 +02:00
|
|
|
#include "include/adc.h"
|
2010-04-12 15:33:03 +02:00
|
|
|
//#include "button.h"
|
2009-05-21 13:55:55 +02:00
|
|
|
#include "12x16_horizontal_LSB_1.h"
|
2010-06-26 16:33:32 +02:00
|
|
|
#include "8x8_horizontal_LSB_1.h"
|
2009-06-01 15:03:09 +02:00
|
|
|
#include "include/touch.h"
|
2009-05-21 13:55:55 +02:00
|
|
|
|
2010-06-26 16:33:32 +02:00
|
|
|
//#include "writing_demo.h"
|
2009-05-16 17:26:18 +02:00
|
|
|
|
2009-05-16 14:10:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-26 16:33:32 +02:00
|
|
|
int main(void) {
|
2009-05-16 14:10:42 +02:00
|
|
|
|
2009-05-21 13:55:55 +02:00
|
|
|
|
2009-06-01 15:03:09 +02:00
|
|
|
lcd_init(LCD_GRAPHIC);
|
2009-05-21 13:55:55 +02:00
|
|
|
|
2010-06-26 16:33:32 +02:00
|
|
|
lcd_clear();
|
2009-05-21 13:55:55 +02:00
|
|
|
|
|
|
|
lcd_plot_text(5,5,"Hello",16,16,font_12x16);
|
2009-06-11 14:48:22 +02:00
|
|
|
lcd_plot_pgmtext(50,22,PSTR("World"),16,16,font_12x16);
|
2010-06-26 16:33:32 +02:00
|
|
|
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-06-11 14:48:22 +02:00
|
|
|
|
2009-05-16 14:10:42 +02:00
|
|
|
|
2009-06-01 15:03:09 +02:00
|
|
|
while(!touch_is_pressed());
|
2009-05-16 14:10:42 +02:00
|
|
|
|
2010-06-26 16:33:32 +02:00
|
|
|
//writing_demo();
|
2009-05-16 14:10:42 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|