Implemented basic sampling and averaging of touch coordinates using timer7

This commit is contained in:
id101010
2015-05-29 01:34:55 +02:00
parent 1785b80dc4
commit 7d2d1a13e4
4 changed files with 79 additions and 24 deletions

View File

@@ -2,7 +2,7 @@
#include "tft.h"
#include "system.h"
#include "touch.h"
#include "screen_guitest.h"
#include "screen_main.h"
#include "filesystem.h"
void app_init() {
@@ -11,15 +11,14 @@ void app_init() {
touch_init();
filesystem_init();
gui_screen_navigate(get_screen_guitest());
gui_screen_navigate(get_screen_main());
}
//app event loop
void app_process() {
system_process(); //Let the system handle it's pending events
//gui_screen_update(); //update the currently active screen
gui_screen_update(); //update the currently active screen
}

View File

@@ -104,7 +104,7 @@ static void enter(void* screen) {
n_updown.max=11;
n_updown.min =-5;
n_updown.callback=n_updown_cb;
gui_numupdown_add(&n_updown);
//gui_numupdown_add(&n_updown);
}