-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App guidelines #62
Comments
despite the little time I have to devote to this beautiful toy, I am writing my first "app" :D it is a simple application that reads from the web an image, such as in my case an image coming from a surveillance camera. In this way I'm also trying to write a guide that might be useful to others who want to try to write some simple app for this watch. Unfortunately at the moment I can only read via http but NOT https, if anyone can help me... regarding the image format, I had initially attempted a porting of TJpgDec, but at the moment I have dropped the jpgs and I am content with the png that seem simpler and less exhite than ram. I implemented the lodepng library with a few minor modifications, and its custom decoder for lvgl. |
@FantasyFactory : You can use this application to create GUI for the watch. |
@FantasyFactory : you can use this tool for image conversion: https://lvgl.io/tools/imageconverter |
so just today lvgl guys released a beta version of the ui editor, they call it edgeline, here is a video, here is a link to it, its currently windows only and missing most of the widgets still but i thought id share |
starting from stopwatch and weather I'm trying to develop my first twatch "app";
Apps (APPNAME, replace it with what you like) must be included in main file my-ttgo-watch.ino
thru #include "app/APPNAME/APPNAME.h"
then adding a setup function APPNAME_setup(); in the arduino setup() function
the APPNAME_setup( void ) function basically will create the gui thru the lvgl library, read the json config file, then wil do some other initialization
#ifdef APPNAME_WIDGET will enable some other functions (more than mere icon show in main tile, but I've not yet understood)
This is the little I understand :D
Events handling are due by callback functions. Most of them are related to lvgl, but which "system events"or hooks we can handle ? For example, what I have to do to handle a custom message not handled by bluetooth_message_msg_pharse() or override it's handling ?
So, there is some visual editor for the lvgl gui ?
What are the guidelines for developing an App that correctly interact whith the framework "My-ttgo-watch" ?
The text was updated successfully, but these errors were encountered: