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...
16 lines
462 B
C
16 lines
462 B
C
#ifndef DRAW_H
|
|
#define DRAW_H
|
|
|
|
#include <TFT_eSPI.h>
|
|
|
|
void draw_drawSprite(
|
|
TFT_eSprite &tft, int x, int y,
|
|
struct SpriteData* spriteData, uint8_t spriteNumber,
|
|
uint8_t factor, bool flipHorizontal = false
|
|
);
|
|
void draw_drawBackground(TFT_eSprite &bg, int spr_w, int spr_h, int factor);
|
|
void draw_drawSpriteCentered(
|
|
TFT_eSprite &spr, struct SpriteData* spriteData, uint8_t spriteNumber, uint8_t factor, bool flipped = false, int y = -1
|
|
);
|
|
|
|
#endif |