Commit Graph

239 Commits

Author SHA1 Message Date
Brian Pugh
a7260bbfa9 Revert semicolon removal from f4498fd0. This semicolon is necessary for more natural, less error prone custom font declaration in lv_conf.h 2019-02-21 21:02:18 -08:00
Rafał Mazurkiewicz
f4498fd0a4 removed unnecessary semicolons 2019-02-20 22:36:56 +01:00
Themba Dube
2e0b8e10ae Add missing include to lv_math.c 2019-02-18 12:15:57 -05:00
Themba Dube
19ea8ac55f Fix compilation error introduced in 1e8ea6b15b 2019-02-17 14:58:10 -05:00
Gabor Kiss-Vamosi
e3bbe0a4fd spinbox fixes 2019-02-15 06:34:30 +01:00
Folke Will
321a08b42e Retain formatting 2019-02-09 13:48:09 +01:00
Folke Will
b7d5537961 Fix color narrowing warning 2019-02-09 13:46:29 +01:00
Gabor Kiss-Vamosi
68f25fa999 add_lv_fs_is_ready() 2019-01-31 13:24:02 +01:00
Gabor Kiss-Vamosi
855dc44e32 solve warings 2019-01-28 16:02:11 +01:00
Gabor Kiss-Vamosi
eca9245382 lv_mem: add LV_MEM_ADR to set wotk memory address externally 2019-01-28 06:09:06 +01:00
Brian Pugh
ac8ce1f643 Added lv_gc.c to lv_misc.mk 2019-01-27 12:30:25 -08:00
Amir Gonnen
10f3928169 Fixed refernce to anim_ll. LV_GC_ROOT must be used for Micropython gc support 2019-01-24 00:51:46 +02:00
Amir Gonnen
b58e526a0b restore LV_COLOR_HEX macros and add inline functions in addition to them, not instead of them 2019-01-24 00:17:37 +02:00
Amir Gonnen
fe479fe261 lv_colors.h: move OPA macros to enum, move LV_COLOR_HEX macros to inline funcs, this exposes them to Micropython. If enum member is a number (as in OPA), prefix it by underscore to create a valid python attribute. Bugfix: when returning to a struct by value, copy it first. lv_mpy.c renamed to lv_mpy_example.c since the actual lv_mpy.c should be generated by the build script automatically based on current H files and lv_conf.h 2019-01-24 00:17:37 +02:00
Amir Gonnen
473c2276dd add '_lv_' prefix to global roots 2019-01-24 00:14:33 +02:00
Amir Gonnen
1e8ea6b15b gc: add undescore to roots, arranged lv_mem.c regarding gc defines. Added support to Symbols using the numstr technique of encoding the characters as a number in an enum. Globals: register them directly witout the need for constructor to access them. Updated example code. Updated lv_mpy.c 2019-01-24 00:14:33 +02:00
Amir Gonnen
a883f0b39a Enable Micropython gc (Garbage Collection) on lvgl. This is controlled by LV_ENABLE_GC macro defined in lv_conf.h. When enabled, lv_conf.h should also define LV_MEM_CUSTOM_REALLOC, LV_MEM_CUSTOM_GET_SIZE, LV_GC_INCLUDE and LV_GC_ROOT 2019-01-24 00:14:33 +02:00
Gabor Kiss-Vamosi
10b86cea37 lv_anim: add ease_in/out path 2019-01-22 15:52:47 +01:00
Gabor Kiss-Vamosi
8ddc9f21fe Set LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN default value to 1 to avoide warnings 2019-01-15 15:36:35 +01:00
Gabor Kiss-Vamosi
bb4b37c6b3 add new object type: lv_ canvas 2019-01-14 16:03:40 +01:00
Gabor Kiss-Vamosi
6f12166af2 lv_task_handler: revert the addition of return value. See: #708 2019-01-14 15:21:04 +01:00
Gabor Kiss-Vamosi
eec348132f turn LV_OPA_.. defines to enum 2019-01-14 15:08:54 +01:00
Gabor Kiss-Vamosi
088936e7f8 add return value to lv_task_handler. resolves #708 2019-01-13 07:46:12 +01:00
Gabor Kiss-Vamosi
d76b9c5b17 Merge pull request #721 from joltwallet/long_word_wrap2
Break long words immediately if word is longer than wrap width 2
2019-01-13 06:20:34 +01:00
Brian Pugh
48cd728693 move LV_TXT_BREAK_LONG defines to lv_conf.h 2019-01-12 10:59:15 -08:00
Brian Pugh
1a4a35f5a1 Change LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN to 0; see discussion #721 2019-01-12 08:44:16 -08:00
Brian Pugh
5b8e2cb6e1 Fixed off by one error for LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 2019-01-12 08:42:37 -08:00
Brian Pugh
6c55ba5d31 Fixed characters jumping after character after future break character 2019-01-11 08:57:23 -08:00
Brian Pugh
62d7b3b034 Added pretty breaks for long, but not widht-long words 2019-01-10 19:52:47 -08:00
Brian Pugh
d8aa9bfa1d move define macro to lv_txt.c 2019-01-10 19:07:36 -08:00
Brian Pugh
56fd6d944c Fixed last character from being cutoff 2019-01-10 19:05:19 -08:00
Gabor Kiss-Vamosi
d3fab62f8f txt position fixes 2019-01-07 07:06:31 +01:00
Brian Pugh
4b2cd9030c Correctly count characters. Also remove letter spaces from 0-width characters 2019-01-06 17:49:07 -08:00
Brian Pugh
ab1a9b41e6 Add a minimum number of characters to print on a super long screen before wrapping it to the next line 2019-01-04 18:43:20 -08:00
Brian Pugh
b7c08e8aed Proper word wrapping taking into account letter_space 2019-01-04 09:10:27 -08:00
Brian Pugh
0a0df60f77 Long word breaking algorithm 2019-01-03 23:17:19 -08:00
Themba Dube
53c19167f3 Merge branch 'master' into dev-5.3 2019-01-03 13:36:02 -05:00
Gabor Kiss-Vamosi
2ab274542a Merge branch 'dev-5.3' of https://github.com/littlevgl/lvgl into dev-5.3 2019-01-03 18:04:38 +01:00
Philipp Trommler
75f3198c3d lv_log: Fix type limits error
When building LittlevGL with a rather recent compiler (tested with GCC
7.3.1 provided by Arm), `-Wall`, `-Wextra` and `-Werror` activated and
`LV_LOG_LEVEL` set to `LV_LOG_LEVEL_TRACE`, compilation fails due to a
type limits error in lv_log.c

     if(level >= LV_LOG_LEVEL) {
              ^~

because the comparison is always true, since level is a `lv_log_level_t`
(that is a typedef for `uint8_t`) and `LV_LOG_LEVEL_TRACE` equals 0.

Fix that by making `lv_log_level_t` a typedef to `int8_t`.

Fixes #690
2019-01-02 15:18:02 +01:00
Gabor Kiss-Vamosi
cda531fc56 lv_circ.c: include lv_circ.h for consistency 2019-01-01 01:34:29 +01:00
Gabor Kiss-Vamosi
639edca434 fix incosistent function parameter names. See #681 2019-01-01 01:32:16 +01:00
Gabor Kiss-Vamosi
6322798b61 lv_trigo_sin: bugfix for with 179 degree 2018-12-30 22:00:59 +01:00
Gabor Kiss-Vamosi
7ac12cd071 lv_ta: refresh only the cursor area on cursor blink 2018-12-30 15:02:16 +01:00
Gabor Kiss-Vamosi
62b3b2c578 update mk files to use absolute path 2018-12-28 18:06:57 +01:00
Gabor Kiss-Vamosi
d78c2f0ef5 Merge pull request #661 from tjstyle/master
lv_log: fix warnings
2018-12-26 23:36:15 +01:00
Gabor Kiss-Vamosi
3e8e94d49c fix warning in lv_anim_path_bounce 2018-12-26 19:31:00 +01:00
Teguh Sobirin
60ee852587 lv_log: fix warnings 2018-12-24 00:49:16 +07:00
Gabor Kiss-Vamosi
19a5f5cd54 minor fixes 2018-12-21 14:35:25 +01:00
Gabor Kiss-Vamosi
dea81daa79 add lv_font_remove 2018-12-13 15:18:06 +01:00
Gabor Kiss-Vamosi
86de6f5fbc lv_font: fix typo 2018-12-12 18:55:32 +01:00