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"
|
2009-05-16 14:10:42 +02:00
|
|
|
#include "button.h"
|
2009-05-21 13:55:55 +02:00
|
|
|
#include "12x16_horizontal_LSB_1.h"
|
2009-06-01 15:03:09 +02:00
|
|
|
//#include "8x8_horizontal_LSB_1.h"
|
|
|
|
#include "include/touch.h"
|
2009-05-21 13:55:55 +02:00
|
|
|
|
2009-06-01 15:03:09 +02:00
|
|
|
#include "writing_demo.h"
|
2009-05-16 17:26:18 +02:00
|
|
|
|
2009-05-16 14:10:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-01 15:03:09 +02:00
|
|
|
int main() {
|
|
|
|
int16_t posX,posY;
|
|
|
|
uint8_t i;
|
|
|
|
char tmp[10];
|
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
|
|
|
|
|
|
|
|
|
|
|
lcd_plot_text(5,5,"Hello",16,16,font_12x16);
|
|
|
|
lcd_plot_text(50,22,"World",16,16,font_12x16);
|
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
|
|
|
|
2009-06-01 15:03:09 +02:00
|
|
|
writing_demo();
|
2009-05-16 14:10:42 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|