mirror of
https://github.com/nacabaro/nacapet.git
synced 2026-01-27 16:05:32 +00:00
Ah si, se ha cambiado el buffer, ocupaba todo el espacio contiguo disponible y no podía aprovecharlo para nada mas. Normal que no te dejara reservar un buffer de 240x240... Y menos ahora cuando has metido el light sleep. Ah si, ahora hay light sleep, el micro baja hasta 4mA, lo cual lo considero suficiente para mi causa...
21 lines
488 B
C++
21 lines
488 B
C++
#include "menu.h"
|
|
#include "display/display.h"
|
|
#include "draw/draw.h"
|
|
#include "defs/defs.h"
|
|
#include "buttons/buttons.h"
|
|
|
|
void menu_drawTitle(TFT_eSprite &bg) {
|
|
uint8_t pressedButtons = buttons_getPressedButtons();
|
|
if (pressedButtons == 8 || pressedButtons == 4) {
|
|
screenKey = CLOCK_EDIT_SCREEN;
|
|
return;
|
|
}
|
|
|
|
draw_drawBackground(bg, 90, 90, 3);
|
|
|
|
tft_drawCenteredText("NacaPet", 4, 40);
|
|
|
|
tft_drawCenteredText(VERSION, 2, 80);
|
|
|
|
tft_drawBuffer();
|
|
} |