Files
Joachim f5896a3609 First commit to add an example with the TTGO Camera Plus device
- For now, the example gets an image from the camera and puts it on the LCD
	- TODO: image is rotated and refresh rate not good
2020-08-25 16:52:45 +02:00

32 lines
585 B
C

#ifndef _APP_SCREEN_H_
#define _APP_SCREEN_H_
#include "iot_lcd.h"
#if __cplusplus
extern "C" {
#endif
#define JPG_IMAGE_LINE_BUF_SIZE 512
#define CENTER -9003
#define RIGHT -9004
#define BOTTOM -9004
void lvgl_lcd_hal_init();
int TFT_bmp_image(int x, int y, uint8_t scale, char *fname, uint8_t *imgbuf, int size);
void TFT_jpg_image(int x,
int y,
uint8_t scale,
int s,
char *filename,
uint8_t *buf,
int size);
#if __cplusplus
}
#endif
#endif /*_APP_SCREEN_H_*/