|
9fc40fd800
|
New implementation of backlight based on persistent keepalive timer, rather than oneshot timer
|
2017-11-28 15:32:27 +01:00 |
|
|
4aa8c56f40
|
add widget_battery() which shows the LiPo state of charge
|
2017-11-27 22:36:38 +01:00 |
|
|
d07a0e053c
|
Backlight support. TOUCH events feed backlight_keepalive(); After a timeout, we fade the backlight to 0 using timers. When the backlight is not active, TOUCH events are not passed to widgets, but the backlight is re-enabled; Add some flags to mos.yml to drive timeout and PWM pin for the backlight on Featherwing
|
2017-11-27 21:30:01 +01:00 |
|
|
d5e01dedd2
|
Simplify screen: make it absolute and fill the whole TFT
|
2017-11-26 20:07:26 +01:00 |
|
|
3cb5fc18e7
|
add widget_ev_to_str(); Pass 'ed' through to EV_WIDGET_TOUCH_{UP,DOWN} calls
|
2017-11-26 19:27:57 +01:00 |
|
|
e826324244
|
Plumb default_widget_handler and default_user_data for widgets read from JSON/File
|
2017-11-26 19:06:44 +01:00 |
|
|
fda8b332db
|
Add 'type', 'label', rename 'icon' to 'img' in widget
|
2017-11-26 18:41:17 +01:00 |
|
|
63f1088e7a
|
Call EV_WIDGET_CREATE upon first installing of set_handler()
|
2017-11-26 16:25:05 +01:00 |
|
|
64af496314
|
Factor out widget_set_{handler,timer}() from app
|
2017-11-26 16:10:51 +01:00 |
|
|
83b0d346ae
|
Add unit tests that catch invalid 'screen' and 'widget' JSON data.
|
2017-11-26 16:01:08 +01:00 |
|
|
f9c4520b60
|
Add widget_{set,delete}_{handler,timer}()
|
2017-11-26 15:55:15 +01:00 |
|
|
fd68b1ec03
|
Refactor app to use 'screen with widgets' rather than 'widgets'
|
2017-11-26 15:01:59 +01:00 |
|
|
3e2e9d4e5b
|
Add screen.[ch] and unit tests
|
2017-11-26 14:18:43 +01:00 |
|
|
79bb900def
|
factor out application widgets from widget.h -- add new include/mongoose-touch.h instead
|
2017-11-26 11:32:47 +01:00 |
|
|
6985b30dc2
|
Add a simple unit test for widget_add_from_file()
|
2017-11-26 11:28:09 +01:00 |
|
|
4f64ed554a
|
Initial commit
|
2017-11-25 01:14:04 +01:00 |
|