/lvgl-latest/scripts/ |
D | lv_conf_internal_gen.py | 138 f'{indent}#ifndef {name}\n' 139 f'{indent} #ifdef LV_KCONFIG_PRESENT\n' 140 f'{indent} #ifdef CONFIG_{name.upper()}\n' 141 f'{indent} #define {name} CONFIG_{name.upper()}\n' 142 f'{indent} #else\n' 143 f'{indent} #define {name} 0\n' 144 f'{indent} #endif\n' 145 f'{indent} #else\n' 146 f'{indent} {line}\n' 147 f'{indent} #endif\n' [all …]
|
D | properties.py | 53 id = f"LV_PROPERTY_{match.group(1).upper()}_{match.group(2).upper()}" 66 id = f"LV_PROPERTY_STYLE_{name}" 89 with open(f'{output}/lv_obj_property_names.h', "w") as header: 90 header.write(f''' 106 file_name = f'lv_{widget}_properties.c' 107 output_file = f'{output}/{file_name}' 117 include = f'../{widget}/lv_{widget}.h' 118 guard = f"#if LV_USE_{widget.upper()}" 120 with open(output_file, 'w') as f: 121 f.write(f''' [all …]
|
D | code-format.py | 41 print(f'Argument [{arg}] not recognized.') 53 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../demos/*.c,*.cpp,*.h"') 57 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../examples/*.c,*.cpp,*.h"') 61 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../src/*.c,*.cpp,*.h"') 65 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../tests/*.c,*.cpp,*.h"')
|
D | LVGLImage.py | 38 raise ParameterError(f"overflow: {hex(val)}") 76 self.cmd = (f"{executable} {'--nofs' if not dither else ''} " 77 f"{ncolors} --force - < ") 81 raise BaseException(f"file not found: {filename}") 85 f'{self.cmd} "{str(filename)}"', 325 header = f''' 348 ending = f''' 364 def write_binary(f, data, stride): argument 368 f.write("\n ") 369 f.write(f"0x{v:02x},") [all …]
|
D | jpg_to_sjpg.py | 65 f = open(str(i)+".jpg", "rb") variable 66 a = f.read() 67 f.close() 105 f = open(OUTPUT_FILE_NAME+".sjpg","wb"); variable 106 f.write(sjpeg) 107 f.close() 128 f = open(OUTPUT_FILE_NAME + '.c', 'w') variable 129 f.write(c_code) 130 f.close()
|
D | trace_filter.py | 31 with open(args.log_file, 'r') as f: 32 content = f.read() 42 with open(args.trace_file, 'w') as f: 43 f.write('# tracer: nop\n#\n') 45 f.write(match[0] + '\n')
|
D | release_branch_updater.py | 38 with open(port_urls_path) as f: 39 urls = f.read() 60 print(LOG, f"attempting to update release branch {fmt_release(lvgl_branch)} ...") 72 f"origin/{fmt_release(lvgl_branch)}")) 90 print(LOG, f"... creating the new branch {fmt_release(lvgl_branch)} " 91 f"from {fmt_release(create_from)}") 100 … subprocess.check_call(("git", "-C", lvgl_path, "checkout", f"origin/{fmt_release(lvgl_branch)}")) 124 … "--verify", "--quiet", f"HEAD:{port_lvgl_submodule_path}")) 138 f"160000,{lvgl_sha},{port_lvgl_submodule_path}")) 177 print(LOG, f"commit message: '{commit_msg}'") [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | diyfp.h | 49 DiyFp() : f(), e() {} in DiyFp() 51 DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {} in DiyFp() 62 f = significand + kDpHiddenBit; in DiyFp() 66 f = significand; in DiyFp() 72 return DiyFp(f - rhs.f, e); 78 uint64_t l = _umul128(f, rhs.f, &h); 84 uint128 p = static_cast<uint128>(f) * static_cast<uint128>(rhs.f); 92 const uint64_t a = f >> 32; 93 const uint64_t b = f & M32; 94 const uint64_t c = rhs.f >> 32; [all …]
|
D | dtoa.h | 68 uint32_t p1 = static_cast<uint32_t>(Mp.f >> -one.e); in DigitGen() 69 uint64_t p2 = Mp.f & (one.f - 1); in DigitGen() 93 GrisuRound(buffer, *len, delta, tmp, kPow10[kappa] << -one.e, wp_w.f); in DigitGen() 105 p2 &= one.f - 1; in DigitGen() 110 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * (index < 20 ? kPow10[index] : 0)); in DigitGen() 125 Wm.f++; in Grisu2() 126 Wp.f--; in Grisu2() 127 DigitGen(W, Wp, Wp.f - Wm.f, buffer, length, K); in Grisu2()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_fs.c | 11 static void read_range(lv_fs_file_t * f, uint32_t from, uint32_t to); 87 static void read_range(lv_fs_file_t * f, uint32_t from, uint32_t to) in read_range() argument 89 lv_fs_seek(f, from, LV_FS_SEEK_SET); in read_range() 94 lv_fs_read(f, buf_rd, len, &br); in read_range() 104 static void read_next(lv_fs_file_t * f, uint32_t from, uint32_t len) in read_next() argument 108 lv_fs_read(f, buf_rd, len, &br); in read_next() 129 lv_fs_file_t f; in read_random_drv() local 130 res = lv_fs_open(&f, fn, LV_FS_MODE_WR); in read_random_drv() 137 res = lv_fs_write(&f, buf256, 256, NULL); in read_random_drv() 140 res = lv_fs_close(&f); in read_random_drv() [all …]
|
/lvgl-latest/src/layouts/flex/ |
D | lv_flex.c | 60 static int32_t find_track_end(lv_obj_t * cont, flex_t * f, int32_t item_start_id, int32_t max_main_… 62 static void children_repos(lv_obj_t * cont, flex_t * f, int32_t item_first_id, int32_t item_last_id… 131 flex_t f; in flex_update() local 133 f.row = flow & LV_FLEX_COLUMN ? 0 : 1; in flex_update() 134 f.wrap = flow & LV_FLEX_WRAP ? 1 : 0; in flex_update() 135 f.rev = flow & LV_FLEX_REVERSE ? 1 : 0; in flex_update() 136 f.main_place = lv_obj_get_style_flex_main_place(cont, LV_PART_MAIN); in flex_update() 137 f.cross_place = lv_obj_get_style_flex_cross_place(cont, LV_PART_MAIN); in flex_update() 138 f.track_place = lv_obj_get_style_flex_track_place(cont, LV_PART_MAIN); in flex_update() 141 …int32_t track_gap = !f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style_pa… in flex_update() [all …]
|
/lvgl-latest/demos/multilang/assets/fonts/ |
D | font2c.py | 17 cmd = f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 15 --format lvgl --output font_mul… 18 cmd = cmd + f" --font NotoSerifHebrew-SemiBold.ttf --symbols \"{hebrew_syms}\"" 19 cmd = cmd + f" --font NotoSerifDevanagari-SemiBold.ttf --symbols \"{devanagari_syms}\"" 20 cmd = cmd + f" --font NotoNaskhArabic-SemiBold.ttf -r \"{arabic_range}\"" 21 cmd = cmd + f" --font NotoSansSC-Medium.otf --symbols \"{chinese_syms}\"" 22 cmd = cmd + f" --font Montserrat-SemiBold.ttf -r {latin_range} --symbols \"{russian_syms}\"" 28 cmd = f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 22 --format lvgl --output font_mul…
|
/lvgl-latest/demos/ebike/assets/ |
D | font_gen.py | 23 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 14 --font Inter-SemiBold.ttf -r 0x2… 24 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 20 --font Inter-SemiBold.ttf -r 0x2… 26 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 24 --font TrumpGothicPro.ttf -r 0x2… 27 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 40 --font TrumpGothicPro.ttf -r 0x2… 28 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 48 --font TrumpGothicPro.ttf -r 0x2… 29 run(f"lv_font_conv --no-compress --no-prefilter --bpp 4 --size 72 --font TrumpGothicPro.ttf -r 0x2…
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_math.h | 239 int nema_f2fx(float f); // ((int)(((a)*((float)0x10000)+0.5f))) 247 #define nema_floor(f) ((int)(f) - ( (int)(f) > (f) )) argument 255 #define nema_ceil(f) ((int)(f) + ( (int)(f) < (f) )) argument
|
/lvgl-latest/src/font/ |
D | lv_font.c | 72 const lv_font_t * f = font_p; in lv_font_get_glyph_dsc() local 77 while(f) { in lv_font_get_glyph_dsc() 78 …bool found = f->get_glyph_dsc(f, dsc_out, letter, f->kerning == LV_FONT_KERNING_NONE ? 0 : letter_… in lv_font_get_glyph_dsc() 81 dsc_out->resolved_font = f; in lv_font_get_glyph_dsc() 86 placeholder_font = f; in lv_font_get_glyph_dsc() 90 f = f->fallback; in lv_font_get_glyph_dsc()
|
/lvgl-latest/docs/ |
D | example_list.py | 84 def write_header(h_num, text, f): argument 87 f.write(header_defs[h_num] * len(text)) 88 f.write('\n') 90 f.write(text + '\n') 91 f.write(header_defs[h_num] * len(text)) 92 f.write('\n\n') 117 fout.write(f".. lv_example:: {k}\n") 130 for f in files: 132 filelist.append(os.path.join(root, f))
|
D | add_translation.py | 47 with open(rst_file, 'r+', encoding='utf-8') as f: 48 content = f.read() 49 f.seek(0, 0) 50 f.write(LANGUAGE + content)
|
D | build.py | 240 print(f'Argument [{arg}] not recognized.') 269 print(f'Using temp directory: [{temp_directory}]') 460 with open(os.path.join(temp_directory, 'Doxyfile'), 'rb') as f: 461 data = f.read().decode('utf-8') 466 with open(os.path.join(temp_directory, 'Doxyfile'), 'wb') as f: 467 f.write(data.encode('utf-8')) 536 with open(index_path, 'rb') as f: 537 index_data = f.read().decode('utf-8') 544 with open(index_path, 'wb') as f: 545 f.write(index_data.encode('utf-8')) [all …]
|
D | config_builder.py | 27 with open(src_config, 'r') as f: 28 data = f.read() 51 with open(dst_config, 'w') as f: 52 f.write(data)
|
/lvgl-latest/scripts/gen_json/ |
D | gen_json.py | 47 with open(lvgl_config_path, 'rb') as f: 48 data = f.read().decode('utf-8').split('\n') 77 if line.startswith(f'#define {item} '): 78 data[i] = f'#define {item} 1' 81 with open(os.path.join(temp_directory, 'lv_conf.h'), 'wb') as f: 82 f.write('\n'.join(data).encode('utf-8')) 105 output_pp = f'/Fi"{pp_file}"' 115 output_pp = f' >> "{pp_file}"' 121 output_pp = f' >> "{pp_file}"' 129 f'{fake_libc_path}{os.pathsep}{os.environ[include_path_env_key]}' [all …]
|
/lvgl-latest/ |
D | lvgl.mk | 3 ASRCS += $(shell find $(LVGL_PATH)/src -type f -name '*.S') 4 CSRCS += $(shell find $(LVGL_PATH)/src -type f -name '*.c') 5 CSRCS += $(shell find $(LVGL_PATH)/demos -type f -name '*.c') 6 CSRCS += $(shell find $(LVGL_PATH)/examples -type f -name '*.c') 8 CXXSRCS += $(shell find $(LVGL_PATH)/src -type f -name '*${CXXEXT}')
|
/lvgl-latest/docs/_ext/ |
D | lv_example.py | 37 …return f"https://github.com/lvgl/lvgl/blob/{env.config.repo_commit_hash}/examples/{example_path}.{… 45 with open(example_file, 'rb') as f: 46 contents = f.read().decode('utf-8') 54 …paragraph_node = nodes.raw(text=f"<p>{self.human_language_name(language)} code </p>", format… 56 …paragraph_node.append(nodes.raw(text=f"<a class='lv-example-link-button' onclick=\"event.stopPropa… 83 …'<i class="fa fa-play"></i> MicroPython Simulator': f"https://sim.lvgl.io/v{env.config.versio… 90 …iframe_html = f"<div class='lv-example' data-real-src='/{env.config.version}/_static/built_lv_exam… 92 …description_html = f"<div class='lv-example-description'>{self.options.get('description', '')}</di… 93 …layout_node = nodes.raw(text=f"<div class='lv-example-container'>{iframe_html}{description_html}</… 101 trailing_node = nodes.raw(text=f"<hr/>", format='html')
|
/lvgl-latest/env_support/cmsis-pack/ |
D | gen_pack.sh | 157 for f in $PACK_BASE_FILES 159 cp -f "$f" $PACK_BUILD/ 200 find $PACK_BUILD/demos/ -type f -name "*.png" -delete 201 find $PACK_BUILD/demos/ -type f -name "*.gif" -delete 202 find $PACK_BUILD/demos/ -type f -name "*.gif" -delete 203 find $PACK_BUILD/demos/ -type f -name "*.ttf" -delete 204 find $PACK_BUILD/demos/ -type f -name "*.otf" -delete 205 find $PACK_BUILD/demos/ -type f -name "*.jpg" -delete 206 find $PACK_BUILD/demos/ -type f -name "*.fnt" -delete
|
/lvgl-latest/src/libs/bin_decoder/ |
D | lv_bin_decoder.c | 51 lv_fs_file_t * f; member 76 static lv_fs_res_t fs_read_file_at(lv_fs_file_t * f, uint32_t pos, void * buff, uint32_t btr, uint3… 200 lv_fs_file_t * f = lv_malloc(sizeof(*f)); in lv_bin_decoder_open() local 201 if(f == NULL) { in lv_bin_decoder_open() 206 fs_res = lv_fs_open(f, dsc->src, LV_FS_MODE_RD); in lv_bin_decoder_open() 209 lv_free(f); in lv_bin_decoder_open() 214 decoder_data->f = f; /*Now free_decoder_data will take care of the file*/ in lv_bin_decoder_open() 416 lv_fs_file_t * f = decoder_data->f; in lv_bin_decoder_get_area() local 467 res = fs_read_file_at(f, offset, buf, len, NULL); in lv_bin_decoder_get_area() 491 res = fs_read_file_at(f, offset, img_data, len, NULL); in lv_bin_decoder_get_area() [all …]
|
/lvgl-latest/tests/micropy_test/ |
D | __init__.py | 45 output += f'\033[31;1m{line}\033[0m\n' 155 log(f'--SETTING UP') 165 log(f'--RUNNING MICROPYTHON ({MICROPYTHON_PATH})') 200 log(f'--TEARDOWN FINISHED') 209 with open(TEST_PATH, 'rb') as f: 210 test_code = f.read() 212 log(f'--RUNNING TEST ({TEST_PATH})') 323 img.save(os.path.join(ARTIFACT_PATH, f'frame.png'), 'PNG') 326 with open(os.path.join(ARTIFACT_PATH, f'frame.bin'), 'wb') as f: 330 f.write(bytes(bytearray([ [all …]
|