sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
537 stars 246 forks source link

TWatch 2021 #366

Closed playmiel closed 2 years ago

playmiel commented 2 years ago

round app not work in twatch2021 the edges of the screen app are unusable and keyboard it to big

it is possible to reduce the size of each application?

sharandac commented 2 years ago

Thank you for your feedback. Unfortunately, most apps are not yet adapted for round displays. I have only managed to get the ESP32 working with PSRAM support. I think in the next few weeks I will have managed to work my way through it. Some apps already have support via the three buttons.

twatch2021

Maybe I will get some support.

playmiel commented 2 years ago

Ah very well I thought that everything was already adapted to the t-watch2021 in this case I will work on my side to adapt each application, I will make a commit if it works well

sharandac commented 2 years ago
#include "gui/mainbar/mainbar.h"

void foo_tile_setup( uint32_t foo_tile_num ) {
    .
    .
    mainbar_add_tile_button_cb( foo_tile_num, foo_button_event_cb );
}

static bool foo_button_event_cb( EventBits_t event, void *arg ) {
    switch( event ) {
        case BUTTON_EXIT:           mainbar_jump_back();
                                    break;
        case BUTTON_SETUP:          foo_jump_to_setup();
                                    break;
        case BUTTON_REFRESH:        foo_refresh();
                                    break;
    }
    return( true );
}