mirror of
https://github.com/ClusterM/fdskey.git
synced 2025-12-19 14:29:21 +01:00
32 lines
674 B
C
32 lines
674 B
C
#ifndef INC_BROWSER_H_
|
|
#define INC_BROWSER_H_
|
|
|
|
#include "ff.h"
|
|
|
|
#define BROWSER_FONT FONT_SLIMFONT_8
|
|
#define BROWSER_HORIZONTAL_SCROLL_SPEED 6
|
|
#define BROWSER_HORIZONTAL_SCROLL_PAUSE 24
|
|
#define BROWSER_FOLDER_IMAGE IMAGE_FOLDER6
|
|
#define BROWSER_LONGPRESS_TIME 500
|
|
|
|
#define BROWSER_USE_RUSSIAN
|
|
|
|
typedef enum {
|
|
BROWSER_BACK,
|
|
BROWSER_BACK_LONGPRESS,
|
|
BROWSER_DIRECTORY,
|
|
BROWSER_FILE,
|
|
BROWSER_FILE_LONGPRESS
|
|
} BROWSER_RESULT;
|
|
|
|
// struct like FILINFO but with dynamic filename
|
|
typedef struct {
|
|
char* filename;
|
|
FSIZE_t fsize;
|
|
uint8_t fattrib;
|
|
} DYN_FILINFO;
|
|
|
|
BROWSER_RESULT browser_tree(char *directory, int dir_max_len, FILINFO *fno);
|
|
|
|
#endif /* INC_BROWSER_H_ */
|