Implemented basic sampling and averaging of touch coordinates using timer7
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user