TEST
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis
Diff: lv_conf.h
- Revision:
- 6:1bb0ac9721d0
- Parent:
- 5:cab3e2179cbf
--- a/lv_conf.h Wed Jan 29 06:48:41 2020 +0000 +++ b/lv_conf.h Mon Feb 17 22:35:53 2020 +0000 @@ -152,7 +152,7 @@ #endif /*1: Add a `user_data` to drivers and objects*/ -#define LV_USE_USER_DATA 0 +#define LV_USE_USER_DATA 1 /*======================== * Image decoder and cache @@ -255,10 +255,10 @@ /* Robot fonts with bpp = 4 * https://fonts.google.com/specimen/Roboto */ -#define LV_FONT_ROBOTO_12 1 -#define LV_FONT_ROBOTO_16 1 -#define LV_FONT_ROBOTO_22 1 -#define LV_FONT_ROBOTO_28 1 +#define LV_FONT_ROBOTO_12 0 +#define LV_FONT_ROBOTO_16 0 +#define LV_FONT_ROBOTO_22 0 +#define LV_FONT_ROBOTO_28 0 /*Pixel perfect monospace font * http://pelulamu.net/unscii/ */ @@ -270,11 +270,18 @@ * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \ * LV_FONT_DECLARE(my_font_2) */ -#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(RB_lv_font_roboto_16) \ - LV_FONT_DECLARE(RB_lv_font_roboto_12) +#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(RB_lv_font_roboto_10) \ + LV_FONT_DECLARE(RB_lv_font_roboto_12) \ + LV_FONT_DECLARE(RB_lv_font_roboto_16) \ + LV_FONT_DECLARE(RB_lv_font_roboto_18) \ + LV_FONT_DECLARE(RB_lv_font_roboto_22) \ + LV_FONT_DECLARE(RB_lv_font_roboto_bold_12) \ + LV_FONT_DECLARE(RB_lv_font_roboto_bold_16) \ + LV_FONT_DECLARE(RB_lv_font_roboto_bold_18) \ + LV_FONT_DECLARE(RB_lv_font_roboto_bold_22) /*Always set a default font from the built-in fonts*/ -#define LV_FONT_DEFAULT &lv_font_roboto_16 +#define LV_FONT_DEFAULT &RB_lv_font_roboto_16 //#define LV_FONT_DEFAULT &RB_lv_font_roboto_16 //GABOR /* Enable it if you have fonts with a lot of characters. @@ -304,7 +311,7 @@ *==================*/ /*Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`)*/ -typedef void * lv_obj_user_data_t; +typedef float *lv_obj_user_data_t; /*1: enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/ #define LV_USE_OBJ_REALIGN 1