├── components
├── lvgl
│ ├── lvgl
│ │ ├── .gitmodules
│ │ ├── .gitignore
│ │ ├── scripts
│ │ │ ├── built_in_font
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ ├── Roboto-Regular.woff
│ │ │ │ └── built_in_font_gen.py
│ │ │ ├── cppcheck_run.sh
│ │ │ ├── clang-formatter.sh
│ │ │ └── lv_conf_checker.py
│ │ ├── .editorconfig
│ │ ├── src
│ │ │ ├── lv_hal
│ │ │ │ ├── lv_hal.mk
│ │ │ │ ├── lv_hal.h
│ │ │ │ └── lv_hal_tick.h
│ │ │ ├── lv_core
│ │ │ │ ├── lv_core.mk
│ │ │ │ └── lv_refr.h
│ │ │ ├── lv_font
│ │ │ │ ├── lv_font.mk
│ │ │ │ └── lv_font.c
│ │ │ ├── lv_themes
│ │ │ │ ├── lv_themes.mk
│ │ │ │ ├── lv_theme_zen.h
│ │ │ │ ├── lv_theme_alien.h
│ │ │ │ ├── lv_theme_mono.h
│ │ │ │ ├── lv_theme_nemo.h
│ │ │ │ ├── lv_theme_night.h
│ │ │ │ ├── lv_theme_templ.h
│ │ │ │ ├── lv_theme_default.h
│ │ │ │ └── lv_theme_material.h
│ │ │ ├── lv_draw
│ │ │ │ ├── lv_draw.mk
│ │ │ │ ├── lv_draw_rect.h
│ │ │ │ ├── lv_draw_line.h
│ │ │ │ ├── lv_draw_arc.h
│ │ │ │ ├── lv_draw_triangle.h
│ │ │ │ ├── lv_draw_label.h
│ │ │ │ └── lv_img_cache.h
│ │ │ ├── lv_misc
│ │ │ │ ├── lv_misc.mk
│ │ │ │ ├── lv_templ.h
│ │ │ │ ├── lv_gc.c
│ │ │ │ ├── lv_templ.c
│ │ │ │ ├── lv_types.h
│ │ │ │ ├── lv_async.h
│ │ │ │ ├── lv_async.c
│ │ │ │ ├── lv_utils.h
│ │ │ │ ├── lv_math.h
│ │ │ │ ├── lv_circ.h
│ │ │ │ ├── lv_circ.c
│ │ │ │ └── lv_log.c
│ │ │ ├── lv_objx
│ │ │ │ └── lv_objx.mk
│ │ │ └── lv_version.h
│ │ ├── lvgl.mk
│ │ ├── .github
│ │ │ ├── ISSUE_TEMPLATE
│ │ │ │ ├── all-other-issues.md
│ │ │ │ └── bug-report.md
│ │ │ └── stale.yml
│ │ ├── porting
│ │ │ ├── lv_port_fs_template.h
│ │ │ ├── lv_port_disp_template.h
│ │ │ └── lv_port_indev_template.h
│ │ ├── LICENCE.txt
│ │ └── lvgl.h
│ ├── CMakeLists.txt
│ └── component.mk
├── lv_examples
│ ├── lv_examples
│ │ ├── .gitignore
│ │ ├── docs
│ │ │ ├── astyle_h
│ │ │ └── astyle_c
│ │ ├── lv_apps
│ │ │ ├── demo
│ │ │ │ ├── bubble_pattern.png
│ │ │ │ ├── demo.mk
│ │ │ │ └── demo.h
│ │ │ ├── benchmark
│ │ │ │ ├── benchmark_bg.png
│ │ │ │ ├── benchmark.mk
│ │ │ │ └── benchmark.h
│ │ │ ├── tpcal
│ │ │ │ ├── tpcal.mk
│ │ │ │ └── tpcal.h
│ │ │ ├── sysmon
│ │ │ │ ├── sysmon.mk
│ │ │ │ └── sysmon.h
│ │ │ └── terminal
│ │ │ │ ├── terminal.mk
│ │ │ │ └── terminal.h
│ │ ├── lv_tutorial
│ │ │ ├── 6_images
│ │ │ │ ├── red_flower.png
│ │ │ │ ├── blue_flower.jpg
│ │ │ │ ├── blue_flower_8.bin
│ │ │ │ ├── blue_rose_16.bin
│ │ │ │ ├── blue_rose_16.png
│ │ │ │ ├── red_rose_16.png
│ │ │ │ ├── blue_flower_16.bin
│ │ │ │ ├── blue_flower_32.bin
│ │ │ │ ├── flower_icon_alpha.bin
│ │ │ │ ├── flower_icon_alpha.png
│ │ │ │ ├── blue_flower_16_swap.bin
│ │ │ │ ├── lv_tutorial_images.mk
│ │ │ │ └── lv_tutorial_images.h
│ │ │ ├── 5_antialiasing
│ │ │ │ ├── apple.png
│ │ │ │ ├── apple_chroma.png
│ │ │ │ ├── lv_tutorial_antialiasing.mk
│ │ │ │ └── lv_tutorial_antialiasing.h
│ │ │ ├── 3_styles
│ │ │ │ ├── lv_tutorial_styles.mk
│ │ │ │ └── lv_tutorial_styles.h
│ │ │ ├── 4_themes
│ │ │ │ ├── lv_tutorial_themes.mk
│ │ │ │ ├── lv_tutorial_themes.h
│ │ │ │ └── lv_tutorial_themes.c
│ │ │ ├── 2_objects
│ │ │ │ ├── lv_tutorial_objects.mk
│ │ │ │ └── lv_tutorial_objects.h
│ │ │ ├── 10_keyboard
│ │ │ │ ├── lv_tutorial_keyboard.mk
│ │ │ │ └── lv_tutorial_keyboard.h
│ │ │ ├── 7_fonts
│ │ │ │ ├── lv_tutorial_fonts.mk
│ │ │ │ └── lv_tutorial_fonts.h
│ │ │ ├── 8_animations
│ │ │ │ ├── lv_tutorial_animations.mk
│ │ │ │ └── lv_tutorial_animations.h
│ │ │ ├── 9_responsive
│ │ │ │ ├── lv_tutorial_responsive.mk
│ │ │ │ └── lv_tutorial_responsive.h
│ │ │ └── 1_hello_world
│ │ │ │ ├── lv_tutorial_hello_world.mk
│ │ │ │ ├── lv_tutorial_hello_world.h
│ │ │ │ └── lv_tutorial_hello_world.c
│ │ ├── lv_tests
│ │ │ ├── lv_test_group
│ │ │ │ ├── lv_test_group_1.png
│ │ │ │ ├── lv_test_group.mk
│ │ │ │ └── lv_test_group.h
│ │ │ ├── lv_test_obj
│ │ │ │ ├── lv_test_object_1.png
│ │ │ │ ├── lv_test_obj.mk
│ │ │ │ └── lv_test_obj.h
│ │ │ ├── lv_test_stress
│ │ │ │ ├── lv_test_stress.png
│ │ │ │ ├── lv_test_stress.mk
│ │ │ │ └── lv_test_stress.h
│ │ │ ├── lv_test_theme
│ │ │ │ ├── lv_test_theme_1.png
│ │ │ │ ├── lv_test_theme_2.png
│ │ │ │ ├── lv_test_theme.mk
│ │ │ │ ├── lv_test_theme_2.h
│ │ │ │ └── lv_test_theme_1.h
│ │ │ ├── lv_test_objx
│ │ │ │ ├── lv_test_cb
│ │ │ │ │ ├── lv_test_cb_1.png
│ │ │ │ │ ├── lv_test_cb.mk
│ │ │ │ │ └── lv_test_cb.h
│ │ │ │ ├── lv_test_img
│ │ │ │ │ ├── flower_icon.png
│ │ │ │ │ ├── lv_test_img_1.png
│ │ │ │ │ ├── lv_test_img.mk
│ │ │ │ │ ├── lv_test_img.h
│ │ │ │ │ └── lv_test_img.c
│ │ │ │ ├── lv_test_kb
│ │ │ │ │ ├── lv_test_kb_1.png
│ │ │ │ │ ├── lv_test_kb_2.png
│ │ │ │ │ ├── lv_test_kb.mk
│ │ │ │ │ └── lv_test_kb.h
│ │ │ │ ├── lv_test_sw
│ │ │ │ │ ├── lv_test_sw_1.png
│ │ │ │ │ ├── lv_test_sw.mk
│ │ │ │ │ ├── lv_test_sw.h
│ │ │ │ │ └── lv_test_sw.c
│ │ │ │ ├── lv_test_ta
│ │ │ │ │ ├── lv_test_ta_1.png
│ │ │ │ │ ├── lv_test_ta_2.png
│ │ │ │ │ ├── lv_test_ta.mk
│ │ │ │ │ └── lv_test_ta.h
│ │ │ │ ├── lv_test_arc
│ │ │ │ │ ├── lv_test_arc_1.png
│ │ │ │ │ ├── lv_test_arc.mk
│ │ │ │ │ ├── lv_test_arc.h
│ │ │ │ │ └── lv_test_arc.c
│ │ │ │ ├── lv_test_bar
│ │ │ │ │ ├── lv_test_bar_1.png
│ │ │ │ │ ├── lv_test_bar.mk
│ │ │ │ │ └── lv_test_bar.h
│ │ │ │ ├── lv_test_btn
│ │ │ │ │ ├── lv_test_btn_1.png
│ │ │ │ │ ├── lv_test_btn.mk
│ │ │ │ │ └── lv_test_btn.h
│ │ │ │ ├── lv_test_btnm
│ │ │ │ │ ├── lv_test_btnm_1.png
│ │ │ │ │ ├── lv_test_btnm.mk
│ │ │ │ │ └── lv_test_btnm.h
│ │ │ │ ├── lv_test_cont
│ │ │ │ │ ├── lv_test_cont_1.png
│ │ │ │ │ ├── lv_test_cont_2.png
│ │ │ │ │ ├── lv_test_cont.mk
│ │ │ │ │ └── lv_test_cont.h
│ │ │ │ ├── lv_test_led
│ │ │ │ │ ├── lv_test_led_1.png
│ │ │ │ │ ├── lv_test_led.mk
│ │ │ │ │ ├── lv_test_led.h
│ │ │ │ │ └── lv_test_led.c
│ │ │ │ ├── lv_test_line
│ │ │ │ │ ├── lv_test_line_1.png
│ │ │ │ │ ├── lv_test_line.mk
│ │ │ │ │ ├── lv_test_line.h
│ │ │ │ │ └── lv_test_line.c
│ │ │ │ ├── lv_test_list
│ │ │ │ │ ├── lv_test_list_1.png
│ │ │ │ │ ├── lv_test_list.mk
│ │ │ │ │ └── lv_test_list.h
│ │ │ │ ├── lv_test_mbox
│ │ │ │ │ ├── lv_test_mbox_1.png
│ │ │ │ │ ├── lv_test_mbox.mk
│ │ │ │ │ └── lv_test_mbox.h
│ │ │ │ ├── lv_test_page
│ │ │ │ │ ├── lv_test_page_1.png
│ │ │ │ │ ├── lv_test_page_2.png
│ │ │ │ │ ├── lv_test_page.mk
│ │ │ │ │ └── lv_test_page.h
│ │ │ │ ├── lv_test_win
│ │ │ │ │ ├── lv_test_win_1.png
│ │ │ │ │ ├── lv_test_win.mk
│ │ │ │ │ └── lv_test_win.h
│ │ │ │ ├── lv_test_chart
│ │ │ │ │ ├── lv_test_chart_1.png
│ │ │ │ │ ├── lv_test_chart.mk
│ │ │ │ │ └── lv_test_chart.h
│ │ │ │ ├── lv_test_gauge
│ │ │ │ │ ├── lv_test_gauge_1.png
│ │ │ │ │ ├── lv_test_gauge.mk
│ │ │ │ │ └── lv_test_gauge.h
│ │ │ │ ├── lv_test_label
│ │ │ │ │ ├── lv_test_label_1.png
│ │ │ │ │ ├── lv_test_label_2.png
│ │ │ │ │ ├── lv_test_label_3.png
│ │ │ │ │ ├── lv_test_label_4.png
│ │ │ │ │ ├── lv_test_label.mk
│ │ │ │ │ └── lv_test_label.h
│ │ │ │ ├── lv_test_table
│ │ │ │ │ ├── lv_test_table_1.png
│ │ │ │ │ ├── lv_test_table_2.png
│ │ │ │ │ ├── lv_test_table.mk
│ │ │ │ │ └── lv_test_table.h
│ │ │ │ ├── lv_test_canvas
│ │ │ │ │ ├── lv_test_canvas_1.png
│ │ │ │ │ ├── lv_test_canvas.mk
│ │ │ │ │ └── lv_test_canvas.h
│ │ │ │ ├── lv_test_ddlist
│ │ │ │ │ ├── lv_test_ddlist_1.png
│ │ │ │ │ ├── lv_test_ddlist.mk
│ │ │ │ │ └── lv_test_ddlist.h
│ │ │ │ ├── lv_test_imgbtn
│ │ │ │ │ ├── lv_test_imgbtn_1.png
│ │ │ │ │ ├── lv_test_imgbtn.mk
│ │ │ │ │ └── lv_test_imgbtn.h
│ │ │ │ ├── lv_test_lmeter
│ │ │ │ │ ├── lv_test_lmeter_1.png
│ │ │ │ │ ├── lv_test_lmeter.mk
│ │ │ │ │ ├── lv_test_lmeter.h
│ │ │ │ │ └── lv_test_lmeter.c
│ │ │ │ ├── lv_test_roller
│ │ │ │ │ ├── lv_test_roller_1.png
│ │ │ │ │ ├── lv_test_roller.mk
│ │ │ │ │ ├── lv_test_roller.h
│ │ │ │ │ └── lv_test_roller.c
│ │ │ │ ├── lv_test_slider
│ │ │ │ │ ├── lv_test_slider_1.png
│ │ │ │ │ ├── lv_test_slider.mk
│ │ │ │ │ └── lv_test_slider.h
│ │ │ │ ├── lv_test_preload
│ │ │ │ │ ├── lv_test_preload_1.png
│ │ │ │ │ ├── lv_test_preload.mk
│ │ │ │ │ ├── lv_test_preload.h
│ │ │ │ │ └── lv_test_preload.c
│ │ │ │ ├── lv_test_tabview
│ │ │ │ │ ├── lv_test_tabview_1.png
│ │ │ │ │ ├── lv_test_tabview_2.png
│ │ │ │ │ ├── lv_test_tabview.mk
│ │ │ │ │ └── lv_test_tabview.h
│ │ │ │ └── lv_test_tileview
│ │ │ │ │ ├── lv_test_tileview_1.gif
│ │ │ │ │ ├── lv_test_tileview.mk
│ │ │ │ │ └── lv_test_tileview.h
│ │ │ └── lv_test_misc
│ │ │ │ └── lv_test_task.h
│ │ ├── .github
│ │ │ └── stale.yml
│ │ ├── lv_examples.h
│ │ ├── lv_ex_conf_templ.h
│ │ └── README.md
│ ├── CMakeLists.txt
│ ├── component.mk
│ └── lv_ex_conf.h
├── websocket
│ ├── component.mk
│ ├── CMakeLists.txt
│ └── Kconfig
└── lvgl_esp32_drivers
│ ├── favicon.ico
│ ├── component.mk
│ ├── CMakeLists.txt
│ └── websocket_driver.h
├── .gitattributes
├── images
├── lvgl_browser.png
├── menuconfig_1.png
├── menuconfig_2.png
├── menuconfig_3.png
├── esp32_lvgl_web.png
└── lvgl_websocket_arch.png
├── CMakeLists.txt
├── main
├── component.mk
└── CMakeLists.txt
├── partitions.csv
├── .gitmodules
├── Makefile
├── .gitignore
├── .settings
├── org.eclipse.cdt.core.prefs
└── language.settings.xml
└── LICENSE
/components/lvgl/lvgl/.gitmodules:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.o
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/docs/astyle_h:
--------------------------------------------------------------------------------
1 | --convert-tabs --indent=spaces=4
2 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.o
2 | **/*.swp
3 | **/*.swo
4 | tags
5 | docs/api_doc
6 |
--------------------------------------------------------------------------------
/components/websocket/component.mk:
--------------------------------------------------------------------------------
1 | # websocket component makefile
2 | # all files are in default positions
--------------------------------------------------------------------------------
/images/lvgl_browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/lvgl_browser.png
--------------------------------------------------------------------------------
/images/menuconfig_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/menuconfig_1.png
--------------------------------------------------------------------------------
/images/menuconfig_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/menuconfig_2.png
--------------------------------------------------------------------------------
/images/menuconfig_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/menuconfig_3.png
--------------------------------------------------------------------------------
/images/esp32_lvgl_web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/esp32_lvgl_web.png
--------------------------------------------------------------------------------
/images/lvgl_websocket_arch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/images/lvgl_websocket_arch.png
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.5)
2 |
3 | include($ENV{IDF_PATH}/tools/cmake/project.cmake)
4 | project(lvgl-demo-web)
5 |
--------------------------------------------------------------------------------
/components/lvgl_esp32_drivers/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lvgl_esp32_drivers/favicon.ico
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/built_in_font/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lvgl/lvgl/scripts/built_in_font/FontAwesome.ttf
--------------------------------------------------------------------------------
/components/lvgl/lvgl/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{c,h}]
2 | indent_style = space
3 | indent_size = 4
4 | end_of_line = lf
5 | insert_final_newline = true
6 | trim_trailing_whitespace = true
7 |
8 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/built_in_font/Roboto-Regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lvgl/lvgl/scripts/built_in_font/Roboto-Regular.woff
--------------------------------------------------------------------------------
/components/lvgl_esp32_drivers/component.mk:
--------------------------------------------------------------------------------
1 | # Websocket driver
2 |
3 | COMPONENT_SRCDIRS := .
4 | COMPONENT_ADD_INCLUDEDIRS := .
5 | COMPONENT_EMBED_FILES := ./index.html ./favicon.ico
6 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/demo/bubble_pattern.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_apps/demo/bubble_pattern.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/benchmark/benchmark_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_apps/benchmark/benchmark_bg.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/red_flower.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/red_flower.png
--------------------------------------------------------------------------------
/components/websocket/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(COMPONENT_SRCS "websocket.c" "websocket_server.c")
2 | set(COMPONENT_ADD_INCLUDEDIRS "./include")
3 | set(COMPONENT_REQUIRES lwip mbedtls)
4 | register_component()
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/apple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/apple.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower.jpg
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_8.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_8.bin
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_rose_16.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_rose_16.bin
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_rose_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_rose_16.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/red_rose_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/red_rose_16.png
--------------------------------------------------------------------------------
/components/lv_examples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | file(GLOB_RECURSE SOURCES lv_examples/*.c)
2 | idf_component_register(SRCS ${SOURCES}
3 | INCLUDE_DIRS .
4 | REQUIRES lvgl)
5 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_16.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_16.bin
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_32.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_32.bin
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_group/lv_test_group_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_group/lv_test_group_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_obj/lv_test_object_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_obj/lv_test_object_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_stress/lv_test_stress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_stress/lv_test_stress.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/apple_chroma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/apple_chroma.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/flower_icon_alpha.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/flower_icon_alpha.bin
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/flower_icon_alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/flower_icon_alpha.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/docs/astyle_c:
--------------------------------------------------------------------------------
1 | --style=kr --convert-tabs --indent=spaces=4 --indent-switches --pad-oper --unpad-paren --align-pointer=middle --suffix=.bak --lineend=linux --min-conditional-indent=
2 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_16_swap.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tutorial/6_images/blue_flower_16_swap.bin
--------------------------------------------------------------------------------
/main/component.mk:
--------------------------------------------------------------------------------
1 | #
2 | # "main" pseudo-component makefile.
3 | #
4 | # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
5 |
6 | CFLAGS+= -DLV_CONF_INCLUDE_SIMPLE
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/flower_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/flower_icon.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_3.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_4.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider_1.png
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/cppcheck_run.sh:
--------------------------------------------------------------------------------
1 | cppcheck --template="{severity}\t{file}:{line}\t{id}: {message}" --enable=all ../src/ --output-file=cppcheck_res.txt --suppress=unusedFunction --suppress=preprocessorErrorDirective --force
2 |
3 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_1.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_2.png
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview_1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danjulio/lv_port_esp32_web/HEAD/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview_1.gif
--------------------------------------------------------------------------------
/components/lvgl/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | file(GLOB_RECURSE SOURCES lvgl/src/*.c)
2 | idf_component_register(SRCS ${SOURCES}
3 | INCLUDE_DIRS . lvgl)
4 |
5 | target_compile_definitions(${COMPONENT_LIB} INTERFACE LV_CONF_INCLUDE_SIMPLE=1)
6 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/tpcal/tpcal.mk:
--------------------------------------------------------------------------------
1 | CSRCS += tpcal.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/tpcal
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/tpcal
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/tpcal"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/sysmon/sysmon.mk:
--------------------------------------------------------------------------------
1 | CSRCS += sysmon.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/sysmon
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/sysmon
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/sysmon"
7 |
--------------------------------------------------------------------------------
/components/lvgl_esp32_drivers/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | file(GLOB SOURCES *.c)
2 |
3 | idf_component_register(SRCS ${SOURCES}
4 | INCLUDE_DIRS .
5 | EMBED_FILES index.html favicon.ico)
6 | REQUIRES lvgl)
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/terminal/terminal.mk:
--------------------------------------------------------------------------------
1 | CSRCS += terminal.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/terminal
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/terminal
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/terminal"
7 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_hal/lv_hal.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_hal_disp.c
2 | CSRCS += lv_hal_indev.c
3 | CSRCS += lv_hal_tick.c
4 |
5 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_hal
6 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_hal
7 |
8 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_hal"
9 |
--------------------------------------------------------------------------------
/main/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(SOURCES main.c)
2 | idf_component_register(SRCS ${SOURCES}
3 | INCLUDE_DIRS .
4 | REQUIRES lvgl_esp32_drivers lvgl lv_examples)
5 |
6 | target_compile_definitions(${COMPONENT_LIB} PRIVATE LV_CONF_INCLUDE_SIMPLE=1)
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/demo/demo.mk:
--------------------------------------------------------------------------------
1 | CSRCS += demo.c
2 | CSRCS += img_bubble_pattern.c
3 |
4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/demo
5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/demo
6 |
7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/demo"
8 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_obj/lv_test_obj.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_obj.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/benchmark/benchmark.mk:
--------------------------------------------------------------------------------
1 | CSRCS += benchmark.c
2 | CSRCS += benchmark_bg.c
3 |
4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/benchmark
5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/benchmark
6 |
7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/benchmark"
8 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_group/lv_test_group.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_group.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_group
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_group
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_group"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_stress/lv_test_stress.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_stress.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/3_styles/lv_tutorial_styles.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_styles.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/3_styles
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/3_styles
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/3_styles"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_themes.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/4_themes
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/4_themes
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/4_themes"
7 |
--------------------------------------------------------------------------------
/partitions.csv:
--------------------------------------------------------------------------------
1 | # Name, Type, SubType, Offset, Size, Flags
2 | # Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
3 | nvs, data, nvs, , 0x6000,
4 | phy_init, data, phy, , 0x1000,
5 | factory, app, factory, , 2M,
6 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/2_objects/lv_tutorial_objects.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_objects.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/2_objects
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/2_objects
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/2_objects"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/10_keyboard/lv_tutorial_keyboard.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_keyboard.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/7_fonts/lv_tutorial_fonts.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_fonts.c
2 | CSRCS += arial_20.c
3 |
4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts
5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts
6 |
7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts"
8 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/8_animations/lv_tutorial_animations.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_animations.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/8_animations
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/8_animations
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/8_animations"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/9_responsive/lv_tutorial_responsive.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_responsive.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_cb.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_kb.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_sw.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_ta.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_theme_1.c
2 | CSRCS += lv_test_theme_2.c
3 |
4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme
5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme
6 |
7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme"
8 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/1_hello_world/lv_tutorial_hello_world.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_hello_world.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_arc.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_bar.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_btn.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_led.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_win.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win"
7 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_core/lv_core.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_group.c
2 | CSRCS += lv_indev.c
3 | CSRCS += lv_disp.c
4 | CSRCS += lv_obj.c
5 | CSRCS += lv_refr.c
6 | CSRCS += lv_style.c
7 |
8 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_core
9 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_core
10 |
11 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_core"
12 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_btnm.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_cont.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_line.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_list.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_mbox.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_page.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_chart.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_gauge.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_label.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_table.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_canvas.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_ddlist.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_lmeter.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_roller.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_slider.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_slider_bar
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_slider
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_slider"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_preload.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_tabview.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_tileview.c
2 |
3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview
4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview
5 |
6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview"
7 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_img.c
2 | CSRCS += img_flower_icon.c
3 |
4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img
5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img
6 |
7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img"
8 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "lvgl"]
2 | path = components/lvgl/lvgl
3 | url = https://github.com/littlevgl/lvgl.git
4 | [submodule "lv_examples"]
5 | path = components/lv_examples/lv_examples
6 | url = https://github.com/littlevgl/lv_examples.git
7 | [submodule "components/websocket"]
8 | path = components/websocket
9 | url = https://github.com/Molorius/esp32-websocket.git
10 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/lvgl.mk:
--------------------------------------------------------------------------------
1 | include $(LVGL_DIR)/lvgl/src/lv_core/lv_core.mk
2 | include $(LVGL_DIR)/lvgl/src/lv_hal/lv_hal.mk
3 | include $(LVGL_DIR)/lvgl/src/lv_objx/lv_objx.mk
4 | include $(LVGL_DIR)/lvgl/src/lv_font/lv_font.mk
5 | include $(LVGL_DIR)/lvgl/src/lv_misc/lv_misc.mk
6 | include $(LVGL_DIR)/lvgl/src/lv_themes/lv_themes.mk
7 | include $(LVGL_DIR)/lvgl/src/lv_draw/lv_draw.mk
8 |
9 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/lv_tutorial_images.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_images.c
2 | CSRCS += red_flower.c
3 | CSRCS += red_rose_16.c
4 | CSRCS += flower_icon_alpha.c
5 |
6 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/6_images
7 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/6_images
8 |
9 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/6_images"
10 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | #
2 | # This is a project Makefile. It is assumed the directory this Makefile resides in is a
3 | # project subdirectory.
4 | #
5 |
6 | PROJECT_NAME := lvgl-demo-web
7 |
8 | # Add new components (source folders)
9 | # Must be before include $(IDF_PATH)/make/project.mk
10 | # $(PROJECT_PATH)/xxx didn't work -> use $(abspath xxx) instead
11 |
12 | include $(IDF_PATH)/make/project.mk
13 |
14 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_tutorial_antialiasing.c
2 | CSRCS += apple_icon_alpha.c
3 | CSRCS += apple_icon_chroma.c
4 |
5 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing
6 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing
7 |
8 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing"
9 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_font/lv_font.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_font.c
2 | CSRCS += lv_font_fmt_txt.c
3 | CSRCS += lv_font_roboto_12.c
4 | CSRCS += lv_font_roboto_16.c
5 | CSRCS += lv_font_roboto_22.c
6 | CSRCS += lv_font_roboto_28.c
7 | CSRCS += lv_font_unscii_8.c
8 |
9 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_font
10 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_font
11 |
12 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_font"
13 |
--------------------------------------------------------------------------------
/components/lvgl/component.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Component Makefile
3 | #
4 |
5 | # Set simple includes as default
6 | ifndef LV_CONF_INCLUDE_SIMPLE
7 | CFLAGS += -DLV_CONF_INCLUDE_SIMPLE
8 | endif
9 |
10 | COMPONENT_SRCDIRS := lvgl/ \
11 | lvgl/src/lv_core \
12 | lvgl/src/lv_draw \
13 | lvgl/src/lv_objx \
14 | lvgl/src/lv_hal \
15 | lvgl/src/lv_misc \
16 | lvgl/src/lv_themes \
17 | lvgl/src/lv_font
18 | COMPONENT_ADD_INCLUDEDIRS := $(COMPONENT_SRCDIRS) .
19 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/.github/ISSUE_TEMPLATE/all-other-issues.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: All other issues
3 | about: Questions and enhancement requests should go to the forum.
4 | title: ''
5 | labels: not-template
6 | assignees: ''
7 |
8 | ---
9 |
10 | # All enhancement requests or questions should be directed to the Forum.
11 |
12 |
13 | We use GitHub issues for development related discussions.
14 | Please use the [forum](https://forum.littlevgl.com/) to ask questions.
15 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_themes.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_theme_alien.c
2 | CSRCS += lv_theme.c
3 | CSRCS += lv_theme_default.c
4 | CSRCS += lv_theme_night.c
5 | CSRCS += lv_theme_templ.c
6 | CSRCS += lv_theme_zen.c
7 | CSRCS += lv_theme_material.c
8 | CSRCS += lv_theme_nemo.c
9 | CSRCS += lv_theme_mono.c
10 |
11 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_themes
12 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_themes
13 |
14 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_themes"
15 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_draw_basic.c
2 | CSRCS += lv_draw.c
3 | CSRCS += lv_draw_rect.c
4 | CSRCS += lv_draw_label.c
5 | CSRCS += lv_draw_line.c
6 | CSRCS += lv_draw_img.c
7 | CSRCS += lv_draw_arc.c
8 | CSRCS += lv_draw_triangle.c
9 | CSRCS += lv_img_decoder.c
10 | CSRCS += lv_img_cache.c
11 |
12 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_draw
13 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_draw
14 |
15 | CFLAGS += "-I$(LVGL_DIR)lvgl/src/lv_draw"
16 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_test_imgbtn.c \
2 | imgbtn_img_1.c \
3 | imgbtn_img_2.c \
4 | imgbtn_img_3.c \
5 | imgbtn_img_4.c
6 |
7 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn
8 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn
9 |
10 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn"
11 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_misc.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_circ.c
2 | CSRCS += lv_area.c
3 | CSRCS += lv_task.c
4 | CSRCS += lv_fs.c
5 | CSRCS += lv_anim.c
6 | CSRCS += lv_mem.c
7 | CSRCS += lv_ll.c
8 | CSRCS += lv_color.c
9 | CSRCS += lv_txt.c
10 | CSRCS += lv_math.c
11 | CSRCS += lv_log.c
12 | CSRCS += lv_gc.c
13 | CSRCS += lv_utils.c
14 | CSRCS += lv_async.c
15 |
16 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_misc
17 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_misc
18 |
19 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_misc"
20 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/clang-formatter.sh:
--------------------------------------------------------------------------------
1 | clang-format-7 -style=file ../src/lv_core/*.c -i
2 | clang-format-7 -style=file ../src/lv_draw/*.c -i
3 | clang-format-7 -style=file ../src/lv_hal/*.c -i
4 | clang-format-7 -style=file ../src/lv_misc/*.c -i
5 | clang-format-7 -style=file ../src/lv_objx/*.c -i
6 | clang-format-7 -style=file ../src/lv_themes/*.c -i
7 |
8 | clang-format-7 -style=file ../src/lv_core/*.h -i
9 | clang-format-7 -style=file ../src/lv_draw/*.h -i
10 | clang-format-7 -style=file ../src/lv_hal/*.h -i
11 | clang-format-7 -style=file ../src/lv_misc/*.h -i
12 | clang-format-7 -style=file ../src/lv_objx/*.h -i
13 | clang-format-7 -style=file ../src/lv_themes/*.h -i
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Prerequisites
2 | *.d
3 |
4 | # Object files
5 | *.o
6 | *.ko
7 | *.obj
8 | *.elf
9 |
10 | # Linker output
11 | *.ilk
12 | *.map
13 | *.exp
14 |
15 | # Precompiled Headers
16 | *.gch
17 | *.pch
18 |
19 | # Libraries
20 | *.lib
21 | *.a
22 | *.la
23 | *.lo
24 |
25 | # Shared objects (inc. Windows DLLs)
26 | *.dll
27 | *.so
28 | *.so.*
29 | *.dylib
30 |
31 | # Executables
32 | *.exe
33 | *.out
34 | *.app
35 | *.i*86
36 | *.x86_64
37 | *.hex
38 |
39 | # Debug files
40 | *.dSYM/
41 | *.su
42 | *.idb
43 | *.pdb
44 |
45 | # Kernel Module Compile Results
46 | *.mod*
47 | *.cmd
48 | .tmp_versions/
49 | modules.order
50 | Module.symvers
51 | Mkfile.old
52 | dkms.conf
53 |
54 | build/
--------------------------------------------------------------------------------
/.settings/org.eclipse.cdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1013439379/append=true
3 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1013439379/appendContributed=true
4 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1257239843/V/delimiter=\:
5 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1257239843/V/operation=append
6 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1257239843/V/value=1
7 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1257239843/append=true
8 | environment/project/cdt.managedbuild.toolchain.gnu.cross.base.1257239843/appendContributed=true
9 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_templ.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_templ.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEMPL_H
7 | #define LV_TEMPL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | /*********************
18 | * DEFINES
19 | *********************/
20 |
21 | /**********************
22 | * TYPEDEFS
23 | **********************/
24 |
25 | /**********************
26 | * GLOBAL PROTOTYPES
27 | **********************/
28 |
29 | /**********************
30 | * MACROS
31 | **********************/
32 |
33 | #ifdef __cplusplus
34 | } /* extern "C" */
35 | #endif
36 |
37 | #endif /*LV_TEMPL_H*/
38 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_hal/lv_hal.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_hal.h
3 | *
4 | */
5 |
6 | #ifndef LV_HAL_H
7 | #define LV_HAL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_hal_disp.h"
17 | #include "lv_hal_indev.h"
18 | #include "lv_hal_tick.h"
19 |
20 | /*********************
21 | * DEFINES
22 | *********************/
23 |
24 | /**********************
25 | * TYPEDEFS
26 | **********************/
27 |
28 | /**********************
29 | * GLOBAL PROTOTYPES
30 | **********************/
31 |
32 | /**********************
33 | * MACROS
34 | **********************/
35 |
36 | #ifdef __cplusplus
37 | } /* extern "C" */
38 | #endif
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/.github/ISSUE_TEMPLATE/bug-report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 |
12 | A clear and concise description of what the bug is.
13 |
14 | **To Reproduce**
15 |
16 | Please provide a small, independent code sample that can be used to reproduce the issue. Ideally this should work in the PC simulator unless the problem is specific to one platform.
17 |
18 | **Expected behavior**
19 |
20 | A clear and concise description of what you expected to happen.
21 |
22 | **Screenshots**
23 | If applicable, add screenshots to help explain your problem.
24 |
25 | **Additional context**
26 |
27 | Add any other context about the problem here.
28 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 21
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - architecture
8 | - pinned
9 | # Label to use when marking an issue as stale
10 | staleLabel: stale
11 | # Comment to post when marking an issue as stale. Set to `false` to disable
12 | markComment: >
13 | This issue or pull request has been automatically marked as stale because it has not had
14 | recent activity. It will be closed if no further activity occurs. Thank you
15 | for your contributions.
16 | # Comment to post when closing a stale issue. Set to `false` to disable
17 | closeComment: false
18 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 21
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - architecture
8 | - pinned
9 | # Label to use when marking an issue as stale
10 | staleLabel: stale
11 | # Comment to post when marking an issue as stale. Set to `false` to disable
12 | markComment: >
13 | This issue or pull request has been automatically marked as stale because it has not had
14 | recent activity. It will be closed if no further activity occurs. Thank you
15 | for your contributions.
16 | # Comment to post when closing a stale issue. Set to `false` to disable
17 | closeComment: false
18 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_gc.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_gc.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 |
10 | #include "lv_gc.h"
11 |
12 | /*********************
13 | * DEFINES
14 | *********************/
15 |
16 | /**********************
17 | * TYPEDEFS
18 | **********************/
19 |
20 | /**********************
21 | * STATIC PROTOTYPES
22 | **********************/
23 |
24 | /**********************
25 | * STATIC VARIABLES
26 | **********************/
27 | #if(!defined(LV_ENABLE_GC)) || LV_ENABLE_GC == 0
28 | LV_ROOTS
29 | #endif /* LV_ENABLE_GC */
30 | /**********************
31 | * MACROS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL FUNCTIONS
36 | **********************/
37 |
38 | /**********************
39 | * STATIC FUNCTIONS
40 | **********************/
41 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/porting/lv_port_fs_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_port_fs_templ.h
3 | *
4 | */
5 |
6 | /*Copy this file as "lv_port_fs.h" and set this value to "1" to enable content*/
7 | #if 0
8 |
9 | #ifndef LV_PORT_FS_TEMPL_H
10 | #define LV_PORT_FS_TEMPL_H
11 |
12 | #ifdef __cplusplus
13 | extern "C" {
14 | #endif
15 |
16 | /*********************
17 | * INCLUDES
18 | *********************/
19 | #include "lvgl/lvgl.h"
20 |
21 | /*********************
22 | * DEFINES
23 | *********************/
24 |
25 | /**********************
26 | * TYPEDEFS
27 | **********************/
28 |
29 | /**********************
30 | * GLOBAL PROTOTYPES
31 | **********************/
32 |
33 | /**********************
34 | * MACROS
35 | **********************/
36 |
37 |
38 | #ifdef __cplusplus
39 | } /* extern "C" */
40 | #endif
41 |
42 | #endif /*LV_PORT_FS_TEMPL_H*/
43 |
44 | #endif /*Disable/Enable content*/
45 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_templ.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_templ.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 |
10 | /*********************
11 | * DEFINES
12 | *********************/
13 |
14 | /**********************
15 | * TYPEDEFS
16 | **********************/
17 |
18 | /* This typedef exists purely to keep -Wpedantic happy when the file is empty. */
19 | /* It can be removed. */
20 | typedef int keep_pedantic_happy;
21 |
22 | /**********************
23 | * STATIC PROTOTYPES
24 | **********************/
25 |
26 | /**********************
27 | * STATIC VARIABLES
28 | **********************/
29 |
30 | /**********************
31 | * MACROS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL FUNCTIONS
36 | **********************/
37 |
38 | /**********************
39 | * STATIC FUNCTIONS
40 | **********************/
41 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_objx/lv_objx.mk:
--------------------------------------------------------------------------------
1 | CSRCS += lv_arc.c
2 | CSRCS += lv_bar.c
3 | CSRCS += lv_cb.c
4 | CSRCS += lv_ddlist.c
5 | CSRCS += lv_kb.c
6 | CSRCS += lv_line.c
7 | CSRCS += lv_mbox.c
8 | CSRCS += lv_preload.c
9 | CSRCS += lv_roller.c
10 | CSRCS += lv_table.c
11 | CSRCS += lv_tabview.c
12 | CSRCS += lv_tileview.c
13 | CSRCS += lv_btn.c
14 | CSRCS += lv_calendar.c
15 | CSRCS += lv_chart.c
16 | CSRCS += lv_canvas.c
17 | CSRCS += lv_gauge.c
18 | CSRCS += lv_label.c
19 | CSRCS += lv_list.c
20 | CSRCS += lv_slider.c
21 | CSRCS += lv_ta.c
22 | CSRCS += lv_spinbox.c
23 | CSRCS += lv_btnm.c
24 | CSRCS += lv_cont.c
25 | CSRCS += lv_img.c
26 | CSRCS += lv_imgbtn.c
27 | CSRCS += lv_led.c
28 | CSRCS += lv_lmeter.c
29 | CSRCS += lv_page.c
30 | CSRCS += lv_sw.c
31 | CSRCS += lv_win.c
32 |
33 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_objx
34 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_objx
35 |
36 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_objx"
37 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/porting/lv_port_disp_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_port_disp_templ.h
3 | *
4 | */
5 |
6 | /*Copy this file as "lv_port_disp.h" and set this value to "1" to enable content*/
7 | #if 0
8 |
9 | #ifndef LV_PORT_DISP_TEMPL_H
10 | #define LV_PORT_DISP_TEMPL_H
11 |
12 | #ifdef __cplusplus
13 | extern "C" {
14 | #endif
15 |
16 | /*********************
17 | * INCLUDES
18 | *********************/
19 | #include "lvgl/lvgl.h"
20 |
21 | /*********************
22 | * DEFINES
23 | *********************/
24 |
25 | /**********************
26 | * TYPEDEFS
27 | **********************/
28 |
29 | /**********************
30 | * GLOBAL PROTOTYPES
31 | **********************/
32 |
33 | /**********************
34 | * MACROS
35 | **********************/
36 |
37 |
38 | #ifdef __cplusplus
39 | } /* extern "C" */
40 | #endif
41 |
42 | #endif /*LV_PORT_DISP_TEMPL_H*/
43 |
44 | #endif /*Disable/Enable content*/
45 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/porting/lv_port_indev_template.h:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * @file lv_port_indev_templ.h
4 | *
5 | */
6 |
7 | /*Copy this file as "lv_port_indev.h" and set this value to "1" to enable content*/
8 | #if 0
9 |
10 | #ifndef LV_PORT_INDEV_TEMPL_H
11 | #define LV_PORT_INDEV_TEMPL_H
12 |
13 | #ifdef __cplusplus
14 | extern "C" {
15 | #endif
16 |
17 | /*********************
18 | * INCLUDES
19 | *********************/
20 | #include "lvgl/lvgl.h"
21 |
22 | /*********************
23 | * DEFINES
24 | *********************/
25 |
26 | /**********************
27 | * TYPEDEFS
28 | **********************/
29 |
30 | /**********************
31 | * GLOBAL PROTOTYPES
32 | **********************/
33 |
34 | /**********************
35 | * MACROS
36 | **********************/
37 |
38 |
39 | #ifdef __cplusplus
40 | } /* extern "C" */
41 | #endif
42 |
43 | #endif /*LV_PORT_INDEV_TEMPL_H*/
44 |
45 | #endif /*Disable/Enable content*/
46 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/demo/demo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file demo.h
3 | *
4 | */
5 |
6 | #ifndef DEMO_H
7 | #define DEMO_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | #ifdef LV_CONF_INCLUDE_SIMPLE
18 | #include "lvgl.h"
19 | #include "lv_ex_conf.h"
20 | #else
21 | #include "../../../lvgl/lvgl.h"
22 | #include "../../../lv_ex_conf.h"
23 | #endif
24 |
25 | #if LV_USE_DEMO
26 |
27 | /*********************
28 | * DEFINES
29 | *********************/
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | /**
40 | * Create a demo application
41 | */
42 | void demo_create(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_DEMO*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*DEMO_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/component.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Component Makefile
3 | #
4 |
5 | CFLAGS += -DLV_CONF_INCLUDE_SIMPLE
6 |
7 | COMPONENT_SRCDIRS := lv_examples \
8 | lv_examples/lv_apps/benchmark \
9 | lv_examples/lv_apps/demo \
10 | lv_examples/lv_apps/sysmon \
11 | lv_examples/lv_apps/terminal \
12 | lv_examples/lv_apps/tpcal \
13 | lv_examples/lv_tests/lv_test_theme \
14 | lv_examples/lv_tests/lv_test_group \
15 | lv_examples/lv_tutorial/10_keyboard \
16 | lv_examples/lv_tutorial/1_hello_world \
17 | lv_examples/lv_tutorial/2_objects \
18 | lv_examples/lv_tutorial/3_styles \
19 | lv_examples/lv_tutorial/4_themes \
20 | lv_examples/lv_tutorial/5_antialiasing \
21 | lv_examples/lv_tutorial/6_images \
22 | lv_examples/lv_tutorial/7_fonts \
23 | lv_examples/lv_tutorial/8_animations \
24 | lv_examples/lv_tutorial/9_responsive
25 |
26 |
27 | COMPONENT_ADD_INCLUDEDIRS := $(COMPONENT_SRCDIRS) .
28 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/sysmon/sysmon.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file symon.h
3 | *
4 | */
5 |
6 | #ifndef SYSMON_H
7 | #define SYSMON_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 | #if LV_USE_DEMO
24 |
25 | /*********************
26 | * DEFINES
27 | *********************/
28 |
29 | /**********************
30 | * TYPEDEFS
31 | **********************/
32 |
33 | /**********************
34 | * GLOBAL PROTOTYPES
35 | **********************/
36 |
37 | /**
38 | * Initialize the system monitor
39 | */
40 | void sysmon_create(void);
41 |
42 | /**********************
43 | * MACROS
44 | **********************/
45 |
46 | #endif /*LV_USE_SYSMON*/
47 |
48 | #ifdef __cplusplus
49 | } /* extern "C" */
50 | #endif
51 |
52 | #endif /* SYSMON_H */
53 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/tpcal/tpcal.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file tpcal.h
3 | *
4 | */
5 |
6 | #ifndef TPCAL_H
7 | #define TPCAL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 |
25 | #if LV_USE_DEMO
26 |
27 | /*********************
28 | * DEFINES
29 | *********************/
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | /**
40 | * Create a touch pad calibration screen
41 | */
42 | void tpcal_create(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_TPCAL*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*TP_CAL_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/2_objects/lv_tutorial_objects.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_objects.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_OBJECTS_H
7 | #define EX_OBJECTS_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | void lv_tutorial_objects(void);
38 |
39 | /**********************
40 | * MACROS
41 | **********************/
42 |
43 | #endif /*LV_USE_TUTORIALS*/
44 |
45 | #ifdef __cplusplus
46 | } /* extern "C" */
47 | #endif
48 |
49 | #endif /*LV_TUTORIAL_OBJECTS_H*/
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_themes.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_THEMES_H
7 | #define LV_TUTORIAL_THEMES_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | void lv_tutorial_themes(void);
38 |
39 | /**********************
40 | * MACROS
41 | **********************/
42 |
43 | #endif /*LV_USE_TUTORIALS*/
44 |
45 | #ifdef __cplusplus
46 | } /* extern "C" */
47 | #endif
48 |
49 | #endif /*LV_TUTORIAL_THEMES_H*/
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/7_fonts/lv_tutorial_fonts.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_fonts.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_FONTS_H
7 | #define LV_TUTORIAL_FONTS_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | void lv_tutorial_fonts(void);
39 |
40 | /**********************
41 | * MACROS
42 | **********************/
43 |
44 | #endif /*LV_USE_TUTORIALS*/
45 |
46 | #ifdef __cplusplus
47 | } /* extern "C" */
48 | #endif
49 |
50 | #endif /*LV_TUTORIAL_FONTS_H*/
51 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/1_hello_world/lv_tutorial_hello_world.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_hello_world
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_HELLO_WORLD_H
7 | #define LV_TUTORIAL_HELLO_WORLD_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | void lv_tutorial_hello_world(void);
38 |
39 | /**********************
40 | * MACROS
41 | **********************/
42 |
43 | #endif /*LV_USE_TUTORIALS*/
44 |
45 | #ifdef __cplusplus
46 | } /* extern "C" */
47 | #endif
48 |
49 | #endif /*LV_TUTORIAL_HELLO_WORLD_H*/
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/9_responsive/lv_tutorial_responsive.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_responsive.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_RESPONSIVE_H
7 | #define LV_TUTORIAL_RESPONSIVE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | void lv_tutorial_responsive(void);
39 |
40 | /**********************
41 | * MACROS
42 | **********************/
43 |
44 | #endif /*LV_USE_TUTORIALS*/
45 |
46 | #ifdef __cplusplus
47 | } /* extern "C" */
48 | #endif
49 |
50 | #endif /*LV_TUTORIAL_ANTMATION_H*/
51 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/LICENCE.txt:
--------------------------------------------------------------------------------
1 | MIT licence
2 | Copyright (c) 2016 Gábor Kiss-Vámosi
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5 |
6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 |
8 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_theme_2.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_THEME_2_H
7 | #define LV_TEST_THEME_2_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Test run time theme change
40 | */
41 | void lv_test_theme_2(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_THEME_2_H*/
54 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_types.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_types.h
3 | *
4 | */
5 |
6 | #ifndef LV_TYPES_H
7 | #define LV_TYPES_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | /*********************
18 | * DEFINES
19 | *********************/
20 |
21 | /**********************
22 | * TYPEDEFS
23 | **********************/
24 |
25 | /**
26 | * LittlevGL error codes.
27 | */
28 | enum {
29 | LV_RES_INV = 0, /*Typically indicates that the object is deleted (become invalid) in the action
30 | function or an operation was failed*/
31 | LV_RES_OK, /*The object is valid (no deleted) after the action*/
32 | };
33 | typedef uint8_t lv_res_t;
34 |
35 | typedef unsigned long int lv_uintptr_t;
36 |
37 | /**********************
38 | * GLOBAL PROTOTYPES
39 | **********************/
40 |
41 | /**********************
42 | * MACROS
43 | **********************/
44 |
45 | #ifdef __cplusplus
46 | } /* extern "C" */
47 | #endif
48 |
49 | #endif /*LV_TYPES_H*/
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_obj/lv_test_obj.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_object.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_OBJECT_H
7 | #define LV_TEST_OBJECT_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create base objects to test their functionalities
40 | */
41 | void lv_test_object_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /* LV_USE_TESTS */
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_stress/lv_test_stress.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_stress.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_STRESS_H
7 | #define LV_TEST_STRESS_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create and delete a lot of objects and animations.
40 | */
41 | void lv_test_stress_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_STRESS_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_led.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_LED_H
7 | #define LV_TEST_LED_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_LED && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create LEDs to test their functionalities
40 | */
41 | void lv_test_led_1(void);
42 | /**********************
43 | * MACROS
44 | **********************/
45 |
46 | #endif /*LV_USE_LED && LV_USE_TESTS*/
47 |
48 | #ifdef __cplusplus
49 | } /* extern "C" */
50 | #endif
51 |
52 | #endif /*LV_TEST_LED_H*/
53 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_sw.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_SW_H
7 | #define LV_TEST_SW_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_SW && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create switches to test their functionalities
40 | */
41 | void lv_test_sw_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_SW && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_SW_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_arc.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_ARC_H
7 | #define LV_TEST_ARC_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_ARC && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create arcs to test their functionalities
40 | */
41 | void lv_test_arc_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_ARC && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_bar.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_BAR_H
7 | #define LV_TEST_BAR_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_BAR && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create bars to test their functionalities
40 | */
41 | void lv_test_bar_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_BAR && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_btn.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_BTN_H
7 | #define LV_TEST_BTN_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_BTN && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create buttons to test their functionalities
40 | */
41 | void lv_test_btn_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_BTN*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_USE_BTN && LV_USE_TESTS*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_cb.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_CB_H
7 | #define LV_TEST_CB_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_CB && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create check boxes to test their functionalities
40 | */
41 | void lv_test_cb_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_CB && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_CB_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_img.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_IMG_H
7 | #define LV_TEST_IMG_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_IMG && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create images to test their functionalities
40 | */
41 | void lv_test_img_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_IMG*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_USE_IMG && LV_USE_TESTS*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_win.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_WIN_H
7 | #define LV_TEST_WIN_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_WIN && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create windows to test their functionalities
40 | */
41 | void lv_test_win_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_WIN && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_WIN_H*/
54 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw_rect.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_draw_rect.h
3 | *
4 | */
5 |
6 | #ifndef LV_DRAW_RECT_H
7 | #define LV_DRAW_RECT_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_draw.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 |
22 | /**********************
23 | * TYPEDEFS
24 | **********************/
25 |
26 | /**********************
27 | * GLOBAL PROTOTYPES
28 | **********************/
29 |
30 | /**
31 | * Draw a rectangle
32 | * @param coords the coordinates of the rectangle
33 | * @param mask the rectangle will be drawn only in this mask
34 | * @param style pointer to a style
35 | * @param opa_scale scale down all opacities by the factor
36 | */
37 | void lv_draw_rect(const lv_area_t * coords, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale);
38 |
39 | /**********************
40 | * MACROS
41 | **********************/
42 |
43 | #ifdef __cplusplus
44 | } /* extern "C" */
45 | #endif
46 |
47 | #endif /*LV_DRAW_RECT_H*/
48 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_line.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_LINE_H
7 | #define LV_TEST_LINE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_LINE && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create lines to test their functionalities
40 | */
41 | void lv_test_line_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_LINE && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_LINE_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_list.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_LIST_H
7 | #define LV_TEST_LIST_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_LIST && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create lists to test their functionalities
40 | */
41 | void lv_test_list_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_LIST && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_LIST_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/3_styles/lv_tutorial_styles.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_styles.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_STYLES_H
7 | #define LV_TUTORIAL_STYLES_H
8 |
9 | #ifdef __cplusplus
10 | lv_tutorialtern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | void lv_tutorial_styles(void);
38 |
39 | /**********************
40 | * MACROS
41 | **********************/
42 |
43 | #endif /*LV_USE_TUTORIALS*/
44 |
45 | #ifdef __cplusplus
46 | } /* lv_tutorialtern "C" */
47 | #endif
48 |
49 | #endif /*LV_TUTORIAL_STYLES_H*/
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/6_images/lv_tutorial_images.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_images.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_IMAGES_H
7 | #define LV_TUTORIAL_IMAGES_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 |
39 | /**
40 | * Create images from variable and file
41 | */
42 | void lv_tutorial_image(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_TUTORIALS*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*LV_TUTORIAL_ANTIALIASING_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_group/lv_test_group.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_group.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_GROUP_H
7 | #define LV_TEST_GROUP_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_GROUP && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create base groups to test their functionalities
40 | */
41 | lv_group_t *lv_test_group_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /* LV_USE_GROUP && LV_USE_TESTS */
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_gauge.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_GAUGE_H
7 | #define LV_TEST_GAUGE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_GAUGE && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create gauges to test their functionalities
40 | */
41 | void lv_test_gauge_1(void);
42 | /**********************
43 | * MACROS
44 | **********************/
45 |
46 | #endif /*LV_USE_GAUGE*/
47 |
48 | #ifdef __cplusplus
49 | } /* extern "C" */
50 | #endif
51 |
52 | #endif /*LV_USE_GAUGE && LV_USE_TESTS*/
53 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Littlev Graphics Library
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_btnm.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_BTNM_H
7 | #define LV_TEST_BTNM_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_BTNM && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create button matrixes to test their functionalities
40 | */
41 | void lv_test_btnm_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_BTNM*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /* LV_USE_BTNM && LV_USE_TESTS*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_mbox.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_MBOX_H
7 | #define LV_TEST_MBOX_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_MBOX && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create message boxes to test their functionalities
40 | */
41 | void lv_test_mbox_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_MBOX && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_MBOX_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_canvas.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_CANVAS_H
7 | #define LV_TEST_CANVAS_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_CANVAS && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create canvas to test its functionalities
40 | */
41 | void lv_test_canvas_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_CANVAS && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_CANVAS_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_imgbtn.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_IMGBTN_H
7 | #define LV_TEST_IMGBTN_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_IMGBTN && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create imgbtns to test their functionalities
40 | */
41 | void lv_test_imgbtn_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_IMGBTN && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_lmeter.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_LMETER_H
7 | #define LV_TEST_LMETER_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_LMETER && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | /**
38 | * Create line meters to test their functionalities
39 | */
40 | void lv_test_lmeter_1(void);
41 |
42 | /**********************
43 | * MACROS
44 | **********************/
45 |
46 | #endif /*LV_USE_LMETER && LV_USE_TESTS*/
47 |
48 | #ifdef __cplusplus
49 | } /* extern "C" */
50 | #endif
51 |
52 | #endif /*LV_TEST_LMETER_H*/
53 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_roller.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_ROLLER_H
7 | #define LV_TEST_ROLLER_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_ROLLER && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create rollers to test their functionalities
40 | */
41 | void lv_test_roller_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_ROLLER && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_ROLLER_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_slider.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_SLIDER_H
7 | #define LV_TEST_SLIDER_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_SLIDER && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create sliders to test their functionalities
40 | */
41 | void lv_test_slider_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_SLIDER*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_USE_SLIDER && LV_USE_TESTS*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_ddlist.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_DDLIST_H
7 | #define LV_TEST_DDLIST_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_DDLIST && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create drop down lists to test their functionalities
40 | */
41 | void lv_test_ddlist_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_DDLIST*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_USE_DDLIST && LV_USE_TESTS*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_preload.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_PRELOAD_H
7 | #define LV_TEST_PRELOAD_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_PRELOAD && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create preloads to test their functionalities
40 | */
41 | void lv_test_preload_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_PRELOAD && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_BAR_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/8_animations/lv_tutorial_animations.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_animation.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_ANIMATION_H
7 | #define LV_TUTORIAL_ANIMATION_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS && LV_USE_ANIMATION
25 |
26 |
27 | /*********************
28 | * DEFINES
29 | *********************/
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | /**
40 | * Crate some objects an animate them
41 | */
42 | void lv_tutorial_animations(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_TUTORIALS*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*LV_TUTORIAL_ANTMATION_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_tileview.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_TILEVIEW_H
7 | #define LV_TEST_TILEVIEW_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TILEVIEW && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create a tileview to test their functionalities
40 | */
41 | void lv_test_tileview_1(void);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_TILEVIEW && LV_USE_TESTS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TEST_TILEVIEW_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_theme.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_THEME_H
7 | #define LV_TEST_THEME_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TESTS
25 |
26 |
27 | /*********************
28 | * DEFINES
29 | *********************/
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | /**
40 | * Create a test screen with a lot objects and apply the given theme on them
41 | * @param th pointer to a theme
42 | */
43 | void lv_test_theme_1(lv_theme_t *th);
44 |
45 | /**********************
46 | * MACROS
47 | **********************/
48 |
49 | #endif /*LV_USE_TESTS*/
50 |
51 | #ifdef __cplusplus
52 | } /* extern "C" */
53 | #endif
54 |
55 | #endif /*LV_TEST_THEME_H*/
56 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_chart.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_CHART_H
7 | #define LV_TEST_CHART_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_BTN && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create charts to test their functionalities
40 | */
41 | void lv_test_chart_1(void);
42 | void lv_test_chart_2(uint8_t chart);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_BTN && LV_USE_TESTS*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*LV_TEST_CHART_H*/
55 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw_line.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_draw_line.h
3 | *
4 | */
5 |
6 | #ifndef LV_DRAW_LINE_H
7 | #define LV_DRAW_LINE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | /*********************
18 | * DEFINES
19 | *********************/
20 |
21 | /**********************
22 | * TYPEDEFS
23 | **********************/
24 |
25 | /**********************
26 | * GLOBAL PROTOTYPES
27 | **********************/
28 |
29 | /**
30 | * Draw a line
31 | * @param point1 first point of the line
32 | * @param point2 second point of the line
33 | * @param mask the line will be drawn only on this area
34 | * @param style pointer to a line's style
35 | * @param opa_scale scale down all opacities by the factor
36 | */
37 | void lv_draw_line(const lv_point_t * point1, const lv_point_t * point2, const lv_area_t * mask,
38 | const lv_style_t * style, lv_opa_t opa_scale);
39 |
40 | /**********************
41 | * MACROS
42 | **********************/
43 |
44 | #ifdef __cplusplus
45 | } /* extern "C" */
46 | #endif
47 |
48 | #endif /*LV_DRAW_LINE_H*/
49 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_tabview.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_TABVIEW_H
7 | #define LV_TEST_TABVIEW_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TABVIEW && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create tab views to test their functionalities
40 | */
41 | void lv_test_tabview_1(void);
42 | void lv_test_tabview_2(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_TABVIEW && LV_USE_TESTS*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*LV_TEST_TABVIEW_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/benchmark/benchmark.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file benchmark.h
3 | *
4 | */
5 |
6 | #ifndef BENCHMARK_H
7 | #define BENCHMARK_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | #ifdef LV_CONF_INCLUDE_SIMPLE
18 | #include "lvgl.h"
19 | #include "lv_ex_conf.h"
20 | #else
21 | #include "../../../lvgl/lvgl.h"
22 | #include "../../../lv_ex_conf.h"
23 | #endif
24 |
25 | #if LV_USE_BENCHMARK
26 |
27 |
28 | /*********************
29 | * DEFINES
30 | *********************/
31 |
32 | /**********************
33 | * TYPEDEFS
34 | **********************/
35 |
36 | /**********************
37 | * GLOBAL PROTOTYPES
38 | **********************/
39 |
40 | /**
41 | * Open a graphics benchmark
42 | */
43 | void benchmark_create(void);
44 |
45 | void benchmark_start(void);
46 |
47 | bool benchmark_is_ready(void);
48 |
49 | uint32_t benchmark_get_refr_time(void);
50 |
51 | /**********************
52 | * MACROS
53 | **********************/
54 |
55 | #endif /*LV_USE_BENCHMARK*/
56 |
57 | #ifdef __cplusplus
58 | } /* extern "C" */
59 | #endif
60 |
61 | #endif /* BENCHMARK_H */
62 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_ta.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_TA_H
7 | #define LV_TEST_TA_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TA && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create text areas to test their basic functionalities
40 | */
41 | void lv_test_ta_1(void);
42 |
43 | /**
44 | * Test cursor modes
45 | */
46 | void lv_test_ta_2(void);
47 |
48 | /**********************
49 | * MACROS
50 | **********************/
51 |
52 | #endif /*LV_USE_TA && LV_USE_TESTS*/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_TEST_TA_H*/
59 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_kb.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_KB_H
7 | #define LV_TEST_KB_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_KB && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create a default object and test the basic functions
40 | */
41 | void lv_test_kb_1(void);
42 |
43 | /**
44 | * Create a styles keyboard
45 | */
46 | void lv_test_kb_2(void);
47 |
48 | /**********************
49 | * MACROS
50 | **********************/
51 |
52 | #endif /*LV_USE_KB*/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_USE_KB && LV_USE_TESTS*/
59 |
--------------------------------------------------------------------------------
/.settings/language.settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/lv_conf_checker.py:
--------------------------------------------------------------------------------
1 | '''
2 | Generates a checker file for lv_conf.h from lv_conf_templ.h define all the not defined values
3 | '''
4 |
5 |
6 | import re
7 |
8 | fin = open("../lv_conf_template.h", "r")
9 | fout = open("../src/lv_conf_checker.h", "w")
10 |
11 |
12 | fout.write(
13 | '''/**
14 | * GENERATED FILE, DO NOT EDIT IT!
15 | * @file lv_conf_checker.h
16 | * Make sure all the defines of lv_conf.h have a default value
17 | **/
18 |
19 | #ifndef LV_CONF_CHECKER_H
20 | #define LV_CONF_CHECKER_H
21 | '''
22 | )
23 |
24 | started = 0
25 |
26 | for i in fin.read().splitlines():
27 | if not started:
28 | if '#define LV_CONF_H' in i:
29 | started = 1
30 | continue
31 | else:
32 | continue
33 |
34 | if '/*--END OF LV_CONF_H--*/' in i: break
35 |
36 | r = re.search(r'^ *# *define ([^\s]+).*$', i)
37 | if r:
38 | fout.write(
39 | f'#ifndef {r[1]}\n'
40 | f'{i}\n'
41 | '#endif\n'
42 | )
43 | elif re.search('^ *typedef .*;.*$', i):
44 | continue #ignore typedefs to avoide redeclaration
45 | else:
46 | fout.write(f'{i}\n')
47 |
48 |
49 | fout.write(
50 | '''
51 | #endif /*LV_CONF_CHECKER_H*/
52 | '''
53 | )
54 |
55 | fin.close()
56 | fout.close()
57 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_page.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_PAGE_H
7 | #define LV_TEST_PAGE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_PAGE && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create pages to test their basic functionalities
40 | */
41 | void lv_test_page_1(void);
42 |
43 | /**
44 | * Test styling, scrollbar modes, layout and action
45 | */
46 | void lv_test_page_2(void);
47 |
48 | /**********************
49 | * MACROS
50 | **********************/
51 |
52 | #endif /*LV_USE_PAGE && LV_USE_TESTS*/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_TEST_PAGE_H*/
59 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_table.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_TABLE_H
7 | #define LV_TEST_TABLE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TABLE && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create tables to test their functionalities
40 | */
41 | void lv_test_table_1(void);
42 |
43 | /**
44 | * Create tables to test their functionalities
45 | */
46 | void lv_test_table_2(void);
47 |
48 | /**********************
49 | * MACROS
50 | **********************/
51 |
52 | #endif /*LV_USE_TABLE && LV_USE_TESTS*/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_TEST_TABLE_H*/
59 |
--------------------------------------------------------------------------------
/components/lvgl_esp32_drivers/websocket_driver.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Websocket driver for LittleVGL
3 | *
4 | * Contains a web server that serves a simple page to a client that draws the output
5 | * of LVGL into a canvas in a webserver via a websocket. Mouse/Touch actions are returned
6 | * via the websocket for LVGL input.
7 | *
8 | * Networking must have been setup prior to starting this driver.
9 | *
10 | */
11 | #ifndef WEBSOCKET_DRIVER_H
12 | #define WEBSOCKET_DRIVER_H
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /*********************
19 | * INCLUDES
20 | *********************/
21 | #include
22 | #include
23 | #include "lvgl/lvgl.h"
24 |
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 | #define DISP_BUF_SIZE (LV_HOR_RES_MAX * 30)
30 |
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 | void websocket_driver_init();
36 | bool websocket_driver_available();
37 | void websocket_driver_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
38 | bool websocket_driver_read(lv_indev_drv_t * drv, lv_indev_data_t * data);
39 |
40 |
41 | #ifdef __cplusplus
42 | } /* extern "C" */
43 | #endif
44 |
45 | #endif /* WEBSOCKET_DRIVER_H */
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_apps/terminal/terminal.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file terminal.h
3 | *
4 | */
5 |
6 | #ifndef TERMINAL_H
7 | #define TERMINAL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_DEMO
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Open a terminal
40 | * @return pointer to the terminal window
41 | */
42 | lv_obj_t * terminal_create(void);
43 |
44 | /**
45 | * Add data to the terminal
46 | * @param txt_in character sting to add to the terminal
47 | */
48 | void terminal_add(const char * txt_in);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif /*LV_USE_TERMINAL*/
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /* LV_TERMINAL_H */
61 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_cont.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_CONT_H
7 | #define LV_TEST_CONT_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_CONT && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create containers to test their basic functionalities
40 | */
41 | void lv_test_cont_1(void);
42 |
43 | /**
44 | * Test nested style inheritance on padding update
45 | */
46 | void lv_test_cont_2(void);
47 |
48 | /**********************
49 | * MACROS
50 | **********************/
51 |
52 | #endif /*LV_USE_CONT && LV_USE_TESTS*/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_TEST_CONT_H*/
59 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_antialiasing.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_ANTIALIASING_H
7 | #define LV_TUTORIAL_ANTIALIASING_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Create object to see how they change from the anti aliasing
40 | * Modify LV_ANTIALIAS and LV_FONT_ANTIALIAS to see what is changing
41 | */
42 | void lv_tutorial_antialiasing(void);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #endif /*LV_USE_TUTORIALS*/
49 |
50 | #ifdef __cplusplus
51 | } /* extern "C" */
52 | #endif
53 |
54 | #endif /*LV_TUTORIAL_ANTIALIASING_H*/
55 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_examples.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_examples.h
3 | *
4 | */
5 |
6 | #ifndef LV_EXAMPLES_H
7 | #define LV_EXAMPLES_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "../lvgl/lvgl.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 | /*Test lvgl version*/
22 | #define LV_EXAMPLES_LVGL_REQ_MAJOR 6
23 | #define LV_EXAMPLES_LVGL_REQ_MINOR 0
24 | #define LV_EXAMPLES_LVGL_REQ_PATCH 0
25 |
26 | #if LV_EXAMPLES_LVGL_REQ_MAJOR != LVGL_VERSION_MAJOR
27 | #error "lv_examples: Wrong lvgl major version"
28 | #endif
29 |
30 | #if LV_EXAMPLES_LVGL_REQ_MINOR > LVGL_VERSION_MINOR
31 | #error "lv_examples: Wrong lvgl minor version"
32 | #endif
33 |
34 | #if LV_EXAMPLES_LVGL_REQ_PATCH > LVGL_VERSION_PATCH
35 | #error "lv_examples: Wrong lvgl bug fix version"
36 | #endif
37 |
38 | /**********************
39 | * TYPEDEFS
40 | **********************/
41 |
42 | /**********************
43 | * GLOBAL PROTOTYPES
44 | **********************/
45 |
46 | /**********************
47 | * MACROS
48 | **********************/
49 |
50 |
51 | #ifdef __cplusplus
52 | } /* extern "C" */
53 | #endif
54 |
55 | #endif /*LV_EXAMPLES_H*/
56 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/10_keyboard/lv_tutorial_keyboard.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_keyboard.h
3 | *
4 | */
5 |
6 | #ifndef LV_TUTORIAL_KEYBOARD_H
7 | #define LV_TUTORIAL_KEYBOARD_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TUTORIALS && LV_USE_GROUP
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | /**
38 | * Create a simple GUI to demonstrate encoder control capability
39 | * kp_indev optinonally pass a keypad input device to control the object (NULL if unused)
40 | */
41 | void lv_tutorial_keyboard(lv_indev_t * kp_indev);
42 |
43 | /**********************
44 | * MACROS
45 | **********************/
46 |
47 | #endif /*LV_USE_TUTORIALS*/
48 |
49 | #ifdef __cplusplus
50 | } /* extern "C" */
51 | #endif
52 |
53 | #endif /*LV_TUTORIAL_KEYBOARD_H*/
54 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_label.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_LABEL_H
7 | #define LV_TEST_LABEL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../../lvgl/lvgl.h"
21 | #include "../../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_LABEL && LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 | /**
38 | * Create labels with dynamic, static and array texts
39 | */
40 | void lv_test_label_1(void);
41 |
42 | /**
43 | * Test label long modes
44 | */
45 | void lv_test_label_2(void);
46 |
47 | /**
48 | * Test text insert and cut
49 | */
50 | void lv_test_label_3(void);
51 |
52 | /**********************
53 | * MACROS
54 | **********************/
55 |
56 | #endif /*LV_USE_LABEL*/
57 |
58 | #ifdef __cplusplus
59 | } /* extern "C" */
60 | #endif
61 |
62 | #endif /*LV_USE_LABEL && LV_USE_TESTS*/
63 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_misc/lv_test_task.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_task.h
3 | *
4 | */
5 |
6 | #ifndef LV_TEST_TASK_H
7 | #define LV_TEST_TASK_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lvgl.h"
18 | #include "lv_ex_conf.h"
19 | #else
20 | #include "../../../lvgl/lvgl.h"
21 | #include "../../../lv_ex_conf.h"
22 | #endif
23 |
24 | #if LV_USE_TESTS
25 |
26 | /*********************
27 | * DEFINES
28 | *********************/
29 |
30 | /**********************
31 | * TYPEDEFS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL PROTOTYPES
36 | **********************/
37 |
38 | /**
39 | * Test the scheduling with various periods and priorities.
40 | */
41 | void lv_test_task_1(void);
42 |
43 | /**
44 | * Create a lot of short task and see their order. They should be executed according to their priority
45 | */
46 | void lv_test_task_2(void);
47 |
48 | /**
49 | * Change the priority later
50 | */
51 | void lv_test_task_3(void);
52 |
53 | /**********************
54 | * MACROS
55 | **********************/
56 |
57 | #endif
58 |
59 | #ifdef __cplusplus
60 | } /* extern "C" */
61 | #endif
62 |
63 | #endif /*LV_TEST_TASK_H*/
64 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_zen.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_zen.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_ZEN_H
7 | #define LV_THEME_ZEN_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_ZEN
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the zen theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_zen_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_zen(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_ZEN_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_alien.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_alien.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_ALIEN_H
7 | #define LV_THEME_ALIEN_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_ALIEN
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the alien theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_alien_init(uint16_t hue, lv_font_t * font);
43 | /**
44 | * Get a pointer to the theme
45 | * @return pointer to the theme
46 | */
47 | lv_theme_t * lv_theme_get_alien(void);
48 |
49 | /**********************
50 | * MACROS
51 | **********************/
52 |
53 | #endif
54 |
55 | #ifdef __cplusplus
56 | } /* extern "C" */
57 | #endif
58 |
59 | #endif /*LV_THEME_ALIEN_H*/
60 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_mono.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_mono.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_MONO_H
7 | #define LV_THEME_MONO_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_MONO
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the mono theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_mono_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_mono(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_MONO_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_nemo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_nemo.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_NEMO_H
7 | #define LV_THEME_NEMO_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_NEMO
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the material theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_nemo_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_nemo(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_NEMO_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_night.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_night.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_NIGHT_H
7 | #define LV_THEME_NIGHT_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_NIGHT
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the night theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_night_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_night(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_NIGHT_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_templ.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_templ.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_TEMPL_H
7 | #define LV_THEME_TEMPL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_TEMPL
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the templ theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_templ_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_templ(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_TEMPL_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_default.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_default.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_DEFAULT_H
7 | #define LV_THEME_DEFAULT_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_DEFAULT
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the default theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_default_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_default(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_TEMPL_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_themes/lv_theme_material.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_theme_material.h
3 | *
4 | */
5 |
6 | #ifndef LV_THEME_MATERIAL_H
7 | #define LV_THEME_MATERIAL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 |
22 | #if LV_USE_THEME_MATERIAL
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 |
28 | /**********************
29 | * TYPEDEFS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL PROTOTYPES
34 | **********************/
35 |
36 | /**
37 | * Initialize the material theme
38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color
39 | * @param font pointer to a font (NULL to use the default)
40 | * @return pointer to the initialized theme
41 | */
42 | lv_theme_t * lv_theme_material_init(uint16_t hue, lv_font_t * font);
43 |
44 | /**
45 | * Get a pointer to the theme
46 | * @return pointer to the theme
47 | */
48 | lv_theme_t * lv_theme_get_material(void);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #endif
55 |
56 | #ifdef __cplusplus
57 | } /* extern "C" */
58 | #endif
59 |
60 | #endif /*LV_THEME_MATERIAL_H*/
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_version.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_version.h
3 | *
4 | */
5 |
6 | #ifndef LV_VERSION_H
7 | #define LV_VERSION_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | /*Current version of LittlevGL*/
17 | #define LVGL_VERSION_MAJOR 6
18 | #define LVGL_VERSION_MINOR 0
19 | #define LVGL_VERSION_PATCH 0
20 | #define LVGL_VERSION_INFO ""
21 |
22 |
23 | /*********************
24 | * DEFINES
25 | *********************/
26 |
27 | /**********************
28 | * TYPEDEFS
29 | **********************/
30 |
31 | /**********************
32 | * GLOBAL PROTOTYPES
33 | **********************/
34 |
35 | /**********************
36 | * MACROS
37 | **********************/
38 | /** Gives 1 if the x.y.z version is supported in the current version
39 | * Usage:
40 | *
41 | * - Require v6
42 | * #if LV_VERSION_CHECK(6,0,0)
43 | * new_func_in_v6();
44 | * #endif
45 | *
46 | *
47 | * - Require at least v5.3
48 | * #if LV_VERSION_CHECK(5,3,0)
49 | * new_feature_from_v5_3();
50 | * #endif
51 | *
52 | *
53 | * - Require v5.3.2 bugfixes
54 | * #if LV_VERSION_CHECK(5,3,2)
55 | * bugfix_in_v5_3_2();
56 | * #endif
57 | *
58 | * */
59 | #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
60 |
61 |
62 | #ifdef __cplusplus
63 | } /* extern "C" */
64 | #endif
65 |
66 | #endif /*LV_VERSION_H*/
67 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_async.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_async.h
3 | *
4 | */
5 |
6 | #ifndef LV_ASYNC_H
7 | #define LV_ASYNC_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | #include "lv_task.h"
18 | #include "lv_types.h"
19 |
20 | /*********************
21 | * DEFINES
22 | *********************/
23 |
24 | /**********************
25 | * TYPEDEFS
26 | **********************/
27 |
28 | /**
29 | * Type for async callback.
30 | */
31 | typedef void (*lv_async_cb_t)(void *);
32 |
33 | typedef struct _lv_async_info_t {
34 | lv_async_cb_t cb;
35 | void *user_data;
36 | } lv_async_info_t;
37 |
38 | struct _lv_obj_t;
39 |
40 | /**********************
41 | * GLOBAL PROTOTYPES
42 | **********************/
43 |
44 | /**
45 | * Call an asynchronous function the next time lv_task_handler() is run. This function is likely to return
46 | * **before** the call actually happens!
47 | * @param task_xcb a callback which is the task itself.
48 | * (the 'x' in the argument name indicates that its not a fully generic function because it not follows
49 | * the `func_name(object, callback, ...)` convention)
50 | * @param user_data custom parameter
51 | */
52 | lv_res_t lv_async_call(lv_async_cb_t async_xcb, void * user_data);
53 |
54 | /**********************
55 | * MACROS
56 | **********************/
57 |
58 | #ifdef __cplusplus
59 | } /* extern "C" */
60 | #endif
61 |
62 | #endif /*LV_TEMPL_H*/
63 |
--------------------------------------------------------------------------------
/components/websocket/Kconfig:
--------------------------------------------------------------------------------
1 |
2 | menu "WebSocket Server"
3 |
4 | config WEBSOCKET_SERVER_MAX_CLIENTS
5 | int "Max clients"
6 | range 1 1000
7 | default 20
8 | help
9 | Maximum number of clients that the WebSocket
10 | server can handle at a time.
11 |
12 | config WEBSOCKET_SERVER_QUEUE_SIZE
13 | int "Queue read size"
14 | range 1 100
15 | default 10
16 | help
17 | Size of the queue to deal with incoming
18 | WebSocket messages. The queue holds the
19 | connection, not the actual message.
20 |
21 | config WEBSOCKET_SERVER_QUEUE_TIMEOUT
22 | int "Queue timeout"
23 | range 0 10000
24 | default 30
25 | help
26 | Timeout for adding new connections to the
27 | read queue.
28 |
29 | config WEBSOCKET_SERVER_TASK_STACK_DEPTH
30 | int "Stack depth"
31 | range 3000 20000
32 | default 6000
33 | help
34 | Stack depth for the WebSocket server. The task
35 | handles reads.
36 |
37 | config WEBSOCKET_SERVER_TASK_PRIORITY
38 | int "Priority"
39 | range 1 20
40 | default 5
41 | help
42 | Priority for the WebSocket server. The task
43 | handles reads.
44 |
45 | config WEBSOCKET_SERVER_PINNED
46 | bool "Server pinned to core"
47 | default false
48 | help
49 | Pin the WebSocket server task to a specific core.
50 | The task handles reads.
51 |
52 | config WEBSOCKET_SERVER_PINNED_CORE
53 | int "Pinned core"
54 | depends on WEBSOCKET_SERVER_PINNED
55 | range 0 1
56 | default 0
57 | help
58 | Core that the WebSocket server is pinned to.
59 | The task handles reads.
60 |
61 | endmenu
62 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw_arc.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_draw_arc.h
3 | *
4 | */
5 |
6 | #ifndef LV_DRAW_ARC_H
7 | #define LV_DRAW_ARC_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_draw.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 |
22 | /**********************
23 | * TYPEDEFS
24 | **********************/
25 |
26 | /**********************
27 | * GLOBAL PROTOTYPES
28 | **********************/
29 |
30 | /**
31 | * Draw an arc. (Can draw pie too with great thickness.)
32 | * @param center_x the x coordinate of the center of the arc
33 | * @param center_y the y coordinate of the center of the arc
34 | * @param radius the radius of the arc
35 | * @param mask the arc will be drawn only in this mask
36 | * @param start_angle the start angle of the arc (0 deg on the bottom, 90 deg on the right)
37 | * @param end_angle the end angle of the arc
38 | * @param style style of the arc (`body.thickness`, `body.main_color`, `body.opa` is used)
39 | * @param opa_scale scale down all opacities by the factor
40 | */
41 | void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, const lv_area_t * mask,
42 | uint16_t start_angle, uint16_t end_angle, const lv_style_t * style, lv_opa_t opa_scale);
43 |
44 | /**********************
45 | * MACROS
46 | **********************/
47 |
48 | #ifdef __cplusplus
49 | } /* extern "C" */
50 | #endif
51 |
52 | #endif /*LV_DRAW_ARC*/
53 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw_triangle.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_draw_triangle.h
3 | *
4 | */
5 |
6 | #ifndef LV_DRAW_TRIANGLE_H
7 | #define LV_DRAW_TRIANGLE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_draw.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 |
22 | /**********************
23 | * TYPEDEFS
24 | **********************/
25 |
26 | /**********************
27 | * GLOBAL PROTOTYPES
28 | **********************/
29 |
30 | /**
31 | *
32 | * @param points pointer to an array with 3 points
33 | * @param mask the triangle will be drawn only in this mask
34 | * @param style style for of the triangle
35 | * @param opa_scale scale down all opacities by the factor (0..255)
36 | */
37 | void lv_draw_triangle(const lv_point_t * points, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale);
38 |
39 | /**
40 | * Draw a polygon from triangles. Only convex polygons are supported
41 | * @param points an array of points
42 | * @param point_cnt number of points
43 | * @param mask polygon will be drawn only in this mask
44 | * @param style style of the polygon
45 | * @param opa_scale scale down all opacities by the factor (0..255)
46 | */
47 | void lv_draw_polygon(const lv_point_t * points, uint32_t point_cnt, const lv_area_t * mask, const lv_style_t * style,
48 | lv_opa_t opa_scale);
49 |
50 | /**********************
51 | * MACROS
52 | **********************/
53 |
54 | #ifdef __cplusplus
55 | } /* extern "C" */
56 | #endif
57 |
58 | #endif /*LV_DRAW_TRIANGLE_H*/
59 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_ex_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_ex_conf.h
3 | *
4 | */
5 | /*
6 | * COPY THIS FILE AS lv_ex_conf.h
7 | */
8 |
9 | #if 1 /*Set it to "1" to enable the content*/
10 |
11 | #ifndef LV_EX_CONF_H
12 | #define LV_EX_CONF_H
13 |
14 | /*******************
15 | * GENERAL SETTING
16 | *******************/
17 | #define LV_EX_PRINTF 0 /*Enable printf-ing data*/
18 | #define LV_EX_KEYBOARD 0 /*Add PC keyboard support to some examples (`lv_drivers` repository is required)*/
19 | #define LV_EX_MOUSEWHEEL 0 /*Add 'encoder' (mouse wheel) support to some examples (`lv_drivers` repository is required)*/
20 |
21 | /*******************
22 | * TEST USAGE
23 | *******************/
24 | #define LV_USE_TESTS 0
25 |
26 | /*******************
27 | * TUTORIAL USAGE
28 | *******************/
29 | #define LV_USE_TUTORIALS 0
30 |
31 |
32 | /*********************
33 | * APPLICATION USAGE
34 | *********************/
35 |
36 | /* Test the graphical performance of your MCU
37 | * with different settings*/
38 | #define LV_USE_BENCHMARK 0
39 |
40 | /*A demo application with Keyboard, Text area, List and Chart
41 | * placed on Tab view */
42 | #define LV_USE_DEMO 1
43 | #if LV_USE_DEMO
44 | #define LV_DEMO_WALLPAPER 0 /*Create a wallpaper too*/
45 | #define LV_DEMO_SLIDE_SHOW 0 /*Automatically switch between tabs*/
46 | #endif
47 |
48 | /*MCU and memory usage monitoring*/
49 | #define LV_USE_SYSMON 0
50 |
51 | /*A terminal to display received characters*/
52 | #define LV_USE_TERMINAL 0
53 |
54 | /*Touch pad calibration with 4 points*/
55 | #define LV_USE_TPCAL 0
56 |
57 | #endif /*LV_EX_CONF_H*/
58 |
59 | #endif /*End of "Content enable"*/
60 |
61 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_hal/lv_hal_tick.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_hal_tick.h
3 | * Provide access to the system tick with 1 millisecond resolution
4 | */
5 |
6 | #ifndef LV_HAL_TICK_H
7 | #define LV_HAL_TICK_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #ifdef LV_CONF_INCLUDE_SIMPLE
17 | #include "lv_conf.h"
18 | #else
19 | #include "../../../lv_conf.h"
20 | #endif
21 | #include
22 | #include
23 |
24 | /*********************
25 | * DEFINES
26 | *********************/
27 | #ifndef LV_ATTRIBUTE_TICK_INC
28 | #define LV_ATTRIBUTE_TICK_INC
29 | #endif
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | //! @cond Doxygen_Suppress
40 |
41 | /**
42 | * You have to call this function periodically
43 | * @param tick_period the call period of this function in milliseconds
44 | */
45 | LV_ATTRIBUTE_TICK_INC void lv_tick_inc(uint32_t tick_period);
46 |
47 | //! @endcond
48 |
49 | /**
50 | * Get the elapsed milliseconds since start up
51 | * @return the elapsed milliseconds
52 | */
53 | uint32_t lv_tick_get(void);
54 |
55 | /**
56 | * Get the elapsed milliseconds since a previous time stamp
57 | * @param prev_tick a previous time stamp (return value of systick_get() )
58 | * @return the elapsed milliseconds since 'prev_tick'
59 | */
60 | uint32_t lv_tick_elaps(uint32_t prev_tick);
61 |
62 | /**********************
63 | * MACROS
64 | **********************/
65 |
66 | #ifdef __cplusplus
67 | } /* extern "C" */
68 | #endif
69 |
70 | #endif /*LV_HAL_TICK_H*/
71 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_ex_conf_templ.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_ex_conf.h
3 | *
4 | */
5 | /*
6 | * COPY THIS FILE AS lv_ex_conf.h
7 | */
8 |
9 | #if 0 /*Set it to "1" to enable the content*/
10 |
11 | #ifndef LV_EX_CONF_H
12 | #define LV_EX_CONF_H
13 |
14 | /*******************
15 | * GENERAL SETTING
16 | *******************/
17 | #define LV_EX_PRINTF 0 /*Enable printf-ing data*/
18 | #define LV_EX_KEYBOARD 0 /*Add PC keyboard support to some examples (`lv_drivers` repository is required)*/
19 | #define LV_EX_MOUSEWHEEL 0 /*Add 'encoder' (mouse wheel) support to some examples (`lv_drivers` repository is required)*/
20 |
21 | /*******************
22 | * TEST USAGE
23 | *******************/
24 | #define LV_USE_TESTS 0
25 |
26 | /*******************
27 | * TUTORIAL USAGE
28 | *******************/
29 | #define LV_USE_TUTORIALS 0
30 |
31 |
32 | /*********************
33 | * APPLICATION USAGE
34 | *********************/
35 |
36 | /* Test the graphical performance of your MCU
37 | * with different settings*/
38 | #define LV_USE_BENCHMARK 0
39 |
40 | /*A demo application with Keyboard, Text area, List and Chart
41 | * placed on Tab view */
42 | #define LV_USE_DEMO 0
43 | #if LV_USE_DEMO
44 | #define LV_DEMO_WALLPAPER 1 /*Create a wallpaper too*/
45 | #define LV_DEMO_SLIDE_SHOW 0 /*Automatically switch between tabs*/
46 | #endif
47 |
48 | /*MCU and memory usage monitoring*/
49 | #define LV_USE_SYSMON 0
50 |
51 | /*A terminal to display received characters*/
52 | #define LV_USE_TERMINAL 0
53 |
54 | /*Touch pad calibration with 4 points*/
55 | #define LV_USE_TPCAL 0
56 |
57 | #endif /*LV_EX_CONF_H*/
58 |
59 | #endif /*End of "Content enable"*/
60 |
61 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_arc.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_arc.h"
10 | #if LV_USE_ARC && LV_USE_TESTS
11 |
12 | /*********************
13 | * DEFINES
14 | *********************/
15 |
16 | /**********************
17 | * TYPEDEFS
18 | **********************/
19 |
20 | /**********************
21 | * STATIC PROTOTYPES
22 | **********************/
23 |
24 | /**********************
25 | * STATIC VARIABLES
26 | **********************/
27 |
28 | /**********************
29 | * MACROS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL FUNCTIONS
34 | **********************/
35 |
36 | /**
37 | * Create arcs to test their functionalities
38 | */
39 | void lv_test_arc_1(void)
40 | {
41 | /* Create a default object*/
42 | lv_obj_t * arc1 = lv_arc_create(lv_disp_get_scr_act(NULL), NULL);
43 | lv_obj_set_pos(arc1, 10, 10);
44 |
45 | /* Modify size, position and angles*/
46 | lv_obj_t * arc2 = lv_arc_create(lv_disp_get_scr_act(NULL), NULL);
47 | lv_obj_set_size(arc2, 100, 100);
48 | lv_obj_align(arc2, arc1, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
49 | lv_arc_set_angles(arc2, 0, 250);
50 |
51 | /* Copy 'arc2' and set a new style for it */
52 | static lv_style_t style1;
53 | lv_style_copy(&style1, &lv_style_plain);
54 | style1.line.color = LV_COLOR_RED;
55 | style1.line.width = 8;
56 | lv_obj_t * arc3 = lv_arc_create(lv_disp_get_scr_act(NULL), arc2);
57 | lv_obj_set_style(arc3, &style1);
58 | lv_obj_align(arc3, arc2, LV_ALIGN_OUT_RIGHT_TOP, 20, 0);
59 |
60 | }
61 |
62 |
63 | /**********************
64 | * STATIC FUNCTIONS
65 | **********************/
66 |
67 | #endif /*LV_USE_ARC && LV_USE_TESTS*/
68 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_async.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_async.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 |
10 | #include "lv_async.h"
11 |
12 | /*********************
13 | * DEFINES
14 | *********************/
15 |
16 | /**********************
17 | * TYPEDEFS
18 | **********************/
19 |
20 | /**********************
21 | * STATIC PROTOTYPES
22 | **********************/
23 |
24 | static void lv_async_task_cb(lv_task_t *task);
25 |
26 | /**********************
27 | * STATIC VARIABLES
28 | **********************/
29 |
30 | /**********************
31 | * MACROS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL FUNCTIONS
36 | **********************/
37 |
38 | lv_res_t lv_async_call(lv_async_cb_t async_xcb, void * user_data)
39 | {
40 | /*Allocate an info structure */
41 | lv_async_info_t *info = lv_mem_alloc(sizeof(lv_async_info_t));
42 |
43 | if(info == NULL)
44 | return LV_RES_INV;
45 |
46 | /* Create a new task */
47 | /* Use highest priority so that it will run before a refresh */
48 | lv_task_t *task = lv_task_create(lv_async_task_cb, 0, LV_TASK_PRIO_HIGHEST, info);
49 |
50 | if(task == NULL) {
51 | lv_mem_free(info);
52 | return LV_RES_INV;
53 | }
54 |
55 | info->cb = async_xcb;
56 | info->user_data = user_data;
57 |
58 | /* Set the task's user data */
59 | task->user_data = info;
60 | lv_task_once(task);
61 | return LV_RES_OK;
62 | }
63 |
64 | /**********************
65 | * STATIC FUNCTIONS
66 | **********************/
67 |
68 | static void lv_async_task_cb(lv_task_t *task)
69 | {
70 | lv_async_info_t *info = (lv_async_info_t *)task->user_data;
71 |
72 | info->cb(info->user_data);
73 |
74 | lv_mem_free(info);
75 | }
76 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_utils.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_utils.h
3 | *
4 | */
5 |
6 | #ifndef LV_UTILS_H
7 | #define LV_UTILS_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include
17 | #include
18 |
19 | /*********************
20 | * DEFINES
21 | *********************/
22 |
23 | /**********************
24 | * TYPEDEFS
25 | **********************/
26 |
27 | /**********************
28 | * GLOBAL PROTOTYPES
29 | **********************/
30 | /**
31 | * Convert a number to string
32 | * @param num a number
33 | * @param buf pointer to a `char` buffer. The result will be stored here (max 10 elements)
34 | * @return same as `buf` (just for convenience)
35 | */
36 | char * lv_utils_num_to_str(int32_t num, char * buf);
37 |
38 | /** Searches base[0] to base[n - 1] for an item that matches *key.
39 | *
40 | * @note The function cmp must return negative if its first
41 | * argument (the search key) is less that its second (a table entry),
42 | * zero if equal, and positive if greater.
43 | *
44 | * @note Items in the array must be in ascending order.
45 | *
46 | * @param key Pointer to item being searched for
47 | * @param base Pointer to first element to search
48 | * @param n Number of elements
49 | * @param size Size of each element
50 | * @param cmp Pointer to comparison function (see #lv_font_codeCompare as a comparison function
51 | * example)
52 | *
53 | * @return a pointer to a matching item, or NULL if none exists.
54 | */
55 | void * lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size,
56 | int32_t (*cmp)(const void * pRef, const void * pElement));
57 |
58 | /**********************
59 | * MACROS
60 | **********************/
61 |
62 | #ifdef __cplusplus
63 | } /* extern "C" */
64 | #endif
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_math.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file math_base.h
3 | *
4 | */
5 |
6 | #ifndef LV_MATH_H
7 | #define LV_MATH_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 | #define LV_MATH_MIN(a, b) ((a) < (b) ? (a) : (b))
22 | #define LV_MATH_MAX(a, b) ((a) > (b) ? (a) : (b))
23 | #define LV_MATH_ABS(x) ((x) > 0 ? (x) : (-(x)))
24 |
25 | #define LV_TRIGO_SIN_MAX 32767
26 | #define LV_TRIGO_SHIFT 15 /**< >> LV_TRIGO_SHIFT to normalize*/
27 |
28 | #define LV_BEZIER_VAL_MAX 1024 /**< Max time in Bezier functions (not [0..1] to use integers) */
29 | #define LV_BEZIER_VAL_SHIFT 10 /**< log2(LV_BEZIER_VAL_MAX): used to normalize up scaled values*/
30 |
31 | /**********************
32 | * TYPEDEFS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL PROTOTYPES
37 | **********************/
38 |
39 | /**
40 | * Return with sinus of an angle
41 | * @param angle
42 | * @return sinus of 'angle'. sin(-90) = -32767, sin(90) = 32767
43 | */
44 | int16_t lv_trigo_sin(int16_t angle);
45 |
46 | /**
47 | * Calculate a value of a Cubic Bezier function.
48 | * @param t time in range of [0..LV_BEZIER_VAL_MAX]
49 | * @param u0 start values in range of [0..LV_BEZIER_VAL_MAX]
50 | * @param u1 control value 1 values in range of [0..LV_BEZIER_VAL_MAX]
51 | * @param u2 control value 2 in range of [0..LV_BEZIER_VAL_MAX]
52 | * @param u3 end values in range of [0..LV_BEZIER_VAL_MAX]
53 | * @return the value calculated from the given parameters in range of [0..LV_BEZIER_VAL_MAX]
54 | */
55 | int32_t lv_bezier3(uint32_t t, int32_t u0, int32_t u1, int32_t u2, int32_t u3);
56 |
57 | /**********************
58 | * MACROS
59 | **********************/
60 |
61 | #ifdef __cplusplus
62 | } /* extern "C" */
63 | #endif
64 |
65 | #endif
66 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/1_hello_world/lv_tutorial_hello_world.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_hello_world
3 | *
4 | */
5 |
6 | /*
7 | *-------------------------------------------------------------------------------
8 | * Create your first object: a "Hello world" label
9 | * ------------------------------------------------------------------------------
10 | *
11 | * If you have ported the LittlevGL you are ready to create content on your display.
12 | *
13 | * Now you will create a "Hello world!" label and align it to the middle.
14 | */
15 |
16 | /*********************
17 | * INCLUDES
18 | *********************/
19 | #include "lv_tutorial_hello_world.h"
20 | #if LV_USE_TUTORIALS
21 |
22 | /*********************
23 | * DEFINES
24 | *********************/
25 |
26 | /**********************
27 | * TYPEDEFS
28 | **********************/
29 |
30 | /**********************
31 | * STATIC PROTOTYPES
32 | **********************/
33 |
34 | /**********************
35 | * STATIC VARIABLES
36 | **********************/
37 |
38 | /**********************
39 | * MACROS
40 | **********************/
41 |
42 | /**********************
43 | * GLOBAL FUNCTIONS
44 | **********************/
45 |
46 | /**
47 | * Create a simple 'Hello world!' label
48 | */
49 | void lv_tutorial_hello_world(void)
50 | {
51 | lv_obj_t * scr = lv_disp_get_scr_act(NULL); /*Get the current screen*/
52 |
53 | /*Create a Label on the currently active screen*/
54 | lv_obj_t * label1 = lv_label_create(scr, NULL);
55 |
56 | /*Modify the Label's text*/
57 | lv_label_set_text(label1, "Hello world!");
58 |
59 | /* Align the Label to the center
60 | * NULL means align on parent (which is the screen now)
61 | * 0, 0 at the end means an x, y offset after alignment*/
62 | lv_obj_align(label1, NULL, LV_ALIGN_CENTER, 0, 0);
63 | }
64 |
65 | /**********************
66 | * STATIC FUNCTIONS
67 | **********************/
68 |
69 | #endif /*LV_USE_TUTORIALS*/
70 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_circ.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_circ.h
3 | *
4 | */
5 |
6 | #ifndef LV_CIRC_H
7 | #define LV_CIRC_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include
17 | #include "lv_area.h"
18 |
19 | /*********************
20 | * DEFINES
21 | *********************/
22 | #define LV_CIRC_OCT1_X(p) (p.x)
23 | #define LV_CIRC_OCT1_Y(p) (p.y)
24 | #define LV_CIRC_OCT2_X(p) (p.y)
25 | #define LV_CIRC_OCT2_Y(p) (p.x)
26 | #define LV_CIRC_OCT3_X(p) (-p.y)
27 | #define LV_CIRC_OCT3_Y(p) (p.x)
28 | #define LV_CIRC_OCT4_X(p) (-p.x)
29 | #define LV_CIRC_OCT4_Y(p) (p.y)
30 | #define LV_CIRC_OCT5_X(p) (-p.x)
31 | #define LV_CIRC_OCT5_Y(p) (-p.y)
32 | #define LV_CIRC_OCT6_X(p) (-p.y)
33 | #define LV_CIRC_OCT6_Y(p) (-p.x)
34 | #define LV_CIRC_OCT7_X(p) (p.y)
35 | #define LV_CIRC_OCT7_Y(p) (-p.x)
36 | #define LV_CIRC_OCT8_X(p) (p.x)
37 | #define LV_CIRC_OCT8_Y(p) (-p.y)
38 |
39 | /**********************
40 | * TYPEDEFS
41 | **********************/
42 |
43 | /**********************
44 | * GLOBAL PROTOTYPES
45 | **********************/
46 |
47 | /**
48 | * Initialize the circle drawing
49 | * @param c pointer to a point. The coordinates will be calculated here
50 | * @param tmp point to a variable. It will store temporary data
51 | * @param radius radius of the circle
52 | */
53 | void lv_circ_init(lv_point_t * c, lv_coord_t * tmp, lv_coord_t radius);
54 |
55 | /**
56 | * Test the circle drawing is ready or not
57 | * @param c same as in circ_init
58 | * @return true if the circle is not ready yet
59 | */
60 | bool lv_circ_cont(lv_point_t * c);
61 |
62 | /**
63 | * Get the next point from the circle
64 | * @param c same as in circ_init. The next point stored here.
65 | * @param tmp same as in circ_init.
66 | */
67 | void lv_circ_next(lv_point_t * c, lv_coord_t * tmp);
68 |
69 | /**********************
70 | * MACROS
71 | **********************/
72 |
73 | #ifdef __cplusplus
74 | } /* extern "C" */
75 | #endif
76 |
77 | #endif
78 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_circ.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_circ.c
3 | * Circle drawing algorithm (with Bresenham)
4 | * Only a 1/8 circle is calculated. Use CIRC_OCT1_X, CIRC_OCT1_Y macros to get
5 | * the other octets.
6 | */
7 |
8 | /*********************
9 | * INCLUDES
10 | *********************/
11 | #include "lv_circ.h"
12 |
13 | /*********************
14 | * DEFINES
15 | *********************/
16 |
17 | /**********************
18 | * TYPEDEFS
19 | **********************/
20 |
21 | /**********************
22 | * STATIC PROTOTYPES
23 | **********************/
24 |
25 | /**********************
26 | * STATIC VARIABLES
27 | **********************/
28 |
29 | /**********************
30 | * MACROS
31 | **********************/
32 |
33 | /**********************
34 | * GLOBAL FUNCTIONS
35 | **********************/
36 |
37 | /**
38 | * Initialize the circle drawing
39 | * @param c pointer to a point. The coordinates will be calculated here
40 | * @param tmp point to a variable. It will store temporary data
41 | * @param radius radius of the circle
42 | */
43 | void lv_circ_init(lv_point_t * c, lv_coord_t * tmp, lv_coord_t radius)
44 | {
45 | c->x = radius;
46 | c->y = 0;
47 | *tmp = 1 - radius;
48 | }
49 |
50 | /**
51 | * Test the circle drawing is ready or not
52 | * @param c same as in circ_init
53 | * @return true if the circle is not ready yet
54 | */
55 | bool lv_circ_cont(lv_point_t * c)
56 | {
57 | return c->y <= c->x ? true : false;
58 | }
59 |
60 | /**
61 | * Get the next point from the circle
62 | * @param c same as in circ_init. The next point stored here.
63 | * @param tmp same as in circ_init.
64 | */
65 | void lv_circ_next(lv_point_t * c, lv_coord_t * tmp)
66 | {
67 | c->y++;
68 |
69 | if(*tmp <= 0) {
70 | (*tmp) += 2 * c->y + 1; // Change in decision criterion for y -> y+1
71 | } else {
72 | c->x--;
73 | (*tmp) += 2 * (c->y - c->x) + 1; // Change for y -> y+1, x -> x-1
74 | }
75 | }
76 |
77 | /**********************
78 | * STATIC FUNCTIONS
79 | **********************/
80 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_misc/lv_log.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_log.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_log.h"
10 | #if LV_USE_LOG
11 |
12 | #if LV_LOG_PRINTF
13 | #include
14 | #endif
15 | /*********************
16 | * DEFINES
17 | *********************/
18 |
19 | /**********************
20 | * TYPEDEFS
21 | **********************/
22 |
23 | /**********************
24 | * STATIC PROTOTYPES
25 | **********************/
26 |
27 | /**********************
28 | * STATIC VARIABLES
29 | **********************/
30 | static lv_log_print_g_cb_t custom_print_cb;
31 |
32 | /**********************
33 | * MACROS
34 | **********************/
35 |
36 | /**********************
37 | * GLOBAL FUNCTIONS
38 | **********************/
39 |
40 | /**
41 | * Register custom print/write function to call when a log is added.
42 | * It can format its "File path", "Line number" and "Description" as required
43 | * and send the formatted log message to a consol or serial port.
44 | * @param print_cb a function pointer to print a log
45 | */
46 | void lv_log_register_print_cb(lv_log_print_g_cb_t print_cb)
47 | {
48 | custom_print_cb = print_cb;
49 | }
50 |
51 | /**
52 | * Add a log
53 | * @param level the level of log. (From `lv_log_level_t` enum)
54 | * @param file name of the file when the log added
55 | * @param line line number in the source code where the log added
56 | * @param dsc description of the log
57 | */
58 | void lv_log_add(lv_log_level_t level, const char * file, int line, const char * dsc)
59 | {
60 | if(level >= _LV_LOG_LEVEL_NUM) return; /*Invalid level*/
61 |
62 | if(level >= LV_LOG_LEVEL) {
63 |
64 | #if LV_LOG_PRINTF
65 | static const char * lvl_prefix[] = {"Trace", "Info", "Warn", "Error"};
66 | printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], dsc, file, line);
67 | #else
68 | if(custom_print_cb) custom_print_cb(level, file, line, dsc);
69 | #endif
70 | }
71 | }
72 |
73 | /**********************
74 | * STATIC FUNCTIONS
75 | **********************/
76 |
77 | #endif /*LV_USE_LOG*/
78 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/scripts/built_in_font/built_in_font_gen.py:
--------------------------------------------------------------------------------
1 | import argparse
2 | from argparse import RawTextHelpFormatter
3 | import os
4 | import sys
5 |
6 | parser = argparse.ArgumentParser(description="""Create fonts for LittelvGL including the built-in symbols. lv_font_conv needs to be installed. See https://github.com/littlevgl/lv_font_conv
7 | Example: python built_in_font_gen.py --size 16 -o lv_font_roboto_16.c --bpp 4 -r 0x20-0x7F""", formatter_class=RawTextHelpFormatter)
8 | parser.add_argument('-s', '--size',
9 | type=int,
10 | metavar = 'px',
11 | nargs='?',
12 | help='Size of the font in px')
13 | parser.add_argument('--bpp',
14 | type=int,
15 | metavar = '1,2,4',
16 | nargs='?',
17 | help='Bit per pixel')
18 | parser.add_argument('-r', '--range',
19 | nargs='+',
20 | metavar = 'start-end',
21 | default='0x20-0x7F',
22 | help='Ranges and/or characters to include. Default is 0x20-7F (ASCII). E.g. -r 0x20-0x7F, 0x200, 324')
23 | parser.add_argument('--font',
24 | metavar = 'file',
25 | nargs='?',
26 | default='Roboto-Regular.woff',
27 | help='A TTF or WOFF file')
28 | parser.add_argument('-o', '--output',
29 | nargs='?',
30 | metavar='file',
31 | help='Output file name. E.g. my_font_20.c')
32 | parser.add_argument('--compressed', action='store_true',
33 | help='Compress the bitmaps')
34 |
35 | args = parser.parse_args()
36 |
37 | if args.compressed == False:
38 | compr = "--no-compress --no-prefilter"
39 | else:
40 | compr = ""
41 |
42 | #Built in symbols
43 | syms = "61441,61448,61451,61452,61453,61457,61459,61460,61461,61465,61468,61473,61478,61479,61480,61502,61504,61512,61515,61516,61517,61521,61522,61523,61524,61543,61544,61553,61556,61559,61560,61561,61563,61587,61589,61636,61637,61639,61671,61683,61724,61732,61787,61931,62016,62017,62018,62019,62020,62099"
44 |
45 | #Run the command
46 | cmd = "lv_font_conv {} --bpp {} --size {} --font ./Roboto-Regular.woff -r {} --font FontAwesome.ttf -r {} --format lvgl -o {} --force-fast-kern-format".format(compr, args.bpp, args.size, args.range[0], syms, args.output)
47 | os.system(cmd)
48 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_img.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_img.h"
10 |
11 | #if LV_USE_IMG && LV_USE_TESTS
12 |
13 | /*********************
14 | * DEFINES
15 | *********************/
16 | LV_IMG_DECLARE(img_flower_icon)
17 |
18 | /**********************
19 | * TYPEDEFS
20 | **********************/
21 |
22 | /**********************
23 | * STATIC PROTOTYPES
24 | **********************/
25 |
26 | /**********************
27 | * STATIC VARIABLES
28 | **********************/
29 |
30 | /**********************
31 | * MACROS
32 | **********************/
33 |
34 | /**********************
35 | * GLOBAL FUNCTIONS
36 | **********************/
37 |
38 | /**
39 | * Create images to test their functionalities
40 | */
41 | void lv_test_img_1(void)
42 | {
43 | /*Create an image object from a varibale*/
44 | lv_obj_t * img1 = lv_img_create(lv_disp_get_scr_act(NULL), NULL);
45 | lv_img_set_src(img1, &img_flower_icon);
46 | lv_obj_set_pos(img1, 10, 10);
47 |
48 | /*Copy the previous image and set a redish style*/
49 | static lv_style_t style;
50 | lv_style_copy(&style, &lv_style_plain);
51 | style.image.color = LV_COLOR_RED;
52 | style.image.intense = LV_OPA_70;
53 |
54 | lv_obj_t * img2 = lv_img_create(lv_disp_get_scr_act(NULL), img1);
55 | lv_img_set_style(img2, LV_IMG_STYLE_MAIN, &style);
56 | lv_obj_align(img2, img1, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
57 |
58 | /*Copy the previous image and test the mosaic feature*/
59 | lv_obj_t * img3 = lv_img_create(lv_disp_get_scr_act(NULL), img2);
60 | lv_obj_set_size(img3, 100, 100);
61 | lv_obj_align(img3, img2, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
62 |
63 | /*Test symbol drawing*/
64 | lv_obj_t * img4 = lv_img_create(lv_disp_get_scr_act(NULL), NULL);
65 | lv_img_set_src(img4, LV_SYMBOL_SETTINGS LV_SYMBOL_OK);
66 | lv_obj_align(img4, img3, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
67 | }
68 |
69 | /**********************
70 | * STATIC FUNCTIONS
71 | **********************/
72 |
73 | #endif /*LV_USE_IMG && LV_USE_TESTS*/
74 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_roller.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_roller.h"
10 |
11 | #if LV_USE_ROLLER && LV_USE_TESTS
12 |
13 | /*********************
14 | * DEFINES
15 | *********************/
16 |
17 | /**********************
18 | * TYPEDEFS
19 | **********************/
20 |
21 | /**********************
22 | * STATIC PROTOTYPES
23 | **********************/
24 |
25 | /**********************
26 | * STATIC VARIABLES
27 | **********************/
28 |
29 | /**********************
30 | * MACROS
31 | **********************/
32 |
33 | /**********************
34 | * GLOBAL FUNCTIONS
35 | **********************/
36 |
37 | /**
38 | * Create rollers to test their functionalities
39 | */
40 | void lv_test_roller_1(void)
41 | {
42 | /* Default object*/
43 | lv_obj_t * roller1 = lv_roller_create(lv_disp_get_scr_act(NULL), NULL);
44 | lv_obj_set_pos(roller1, 10, 10);
45 |
46 | static lv_style_t bg;
47 | lv_style_copy(&bg, &lv_style_pretty);
48 | bg.body.main_color = LV_COLOR_GRAY;
49 | bg.body.grad_color = LV_COLOR_WHITE;
50 | bg.body.shadow.width = 5;
51 | bg.text.line_space = 10;
52 | bg.text.opa = LV_OPA_60;
53 | bg.text.color = LV_COLOR_GRAY;
54 |
55 | lv_obj_t * roller2 = lv_roller_create(lv_disp_get_scr_act(NULL), NULL);
56 | lv_obj_set_size(roller2, 80, 120);
57 | lv_roller_set_options(roller2, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9", true);
58 | lv_obj_align(roller2, roller1, LV_ALIGN_OUT_RIGHT_TOP, 20, 0);
59 | lv_roller_set_anim_time(roller2, 500);
60 | lv_roller_set_style(roller2, LV_ROLLER_STYLE_BG, &bg);
61 | lv_roller_set_style(roller2, LV_ROLLER_STYLE_SEL, &lv_style_plain);
62 | lv_roller_set_selected(roller2, 4, true);
63 |
64 | lv_obj_t * roller3 = lv_roller_create(lv_disp_get_scr_act(NULL), roller2);
65 | lv_obj_align(roller3, roller2, LV_ALIGN_OUT_RIGHT_TOP, 20, 0);
66 | lv_roller_set_fix_width(roller3, LV_DPI);
67 | lv_roller_set_align(roller3, LV_LABEL_ALIGN_RIGHT);
68 |
69 | }
70 |
71 |
72 | /**********************
73 | * STATIC FUNCTIONS
74 | **********************/
75 |
76 | #endif /*LV_USE_ROLLER && LV_USE_TESTS*/
77 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/README.md:
--------------------------------------------------------------------------------
1 | # Examples for Littlev Graphics Library
2 |
3 | LittlevGL is a free and open-source graphics library providing everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
4 |
5 | GitHub: https://github.com/littlevgl/lvgl
6 | Website: https://littlevgl.com
7 |
8 | ## Add the examples to your projects
9 | 1. Clone this repository: `git clone https://github.com/littlevgl/lv_examples.git` or download from the [Download page](https://littlevgl.com/download). To always use the newest version the cloning is recommended.
10 | 2. The `lv_examples` directory should be next to the `lvgl` directory in your project.
11 |
12 | Similary to `lv_conf.h` there is a configuration file for the examples too. It is called `lv_ex_conf.h`.
13 | 1. Copy `lv_examples/lv_ex-conf_templ.h` next to `lv_examples` directory
14 | 2. Rename is to `lv_ex_conf.h`
15 | 3. Delete the first `#if` and last `#endif` to enable the file's content
16 | 4. Enable or Disable modules
17 |
18 | ## Tutorial
19 | A step-by-step guide to teach the most important parts of the Graphics Library.
20 | * Hello world
21 | * Objects (graphical components)
22 | * Styles
23 | * Themes
24 | * Anti-aliasing
25 | * Images
26 | * Fonts
27 | * Animations
28 | * Responsive
29 | * Keyboard
30 |
31 | ## Applications
32 | Real life GUI examples which can be adapted in your own project. The applications are designed to adapt to your screen's resolution.
33 | * Demo
34 | * Benchmark
35 | * System performance monitor
36 | * Touchpad calibrator
37 | * Terminal
38 |
39 | ## Tests
40 | Test cases to validate the features of LittelvGL. You can also use them as examples. The most important and useful tests are:
41 | * Theme test: `lv_test_theme_1()`
42 | * Keyboard interface test: `lv_test_group_1()`
43 | * Tests of object types: `lv_test_..._1/2/3()` e.g. (lv_test_slider_1())
44 |
45 | ## Contributing
46 | For contribution and coding style guidelines, please refer to the file docs/CONTRIBUTNG.md in the main LittlevGL repo:
47 | https://github.com/littlevgl/lvgl
48 | You are encouraged to use the 'astyle' util to format your code prior to pushing it. The files docs/astyle_(c/h) contain astyle rules to format source and header files according to the project coding guidelines.
49 |
50 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_line.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_line.h"
10 |
11 | #if LV_USE_LINE && LV_USE_TESTS
12 |
13 | /*********************
14 | * DEFINES
15 | *********************/
16 |
17 | /**********************
18 | * TYPEDEFS
19 | **********************/
20 |
21 | /**********************
22 | * STATIC PROTOTYPES
23 | **********************/
24 |
25 | /**********************
26 | * STATIC VARIABLES
27 | **********************/
28 |
29 | /**********************
30 | * MACROS
31 | **********************/
32 |
33 | /**********************
34 | * GLOBAL FUNCTIONS
35 | **********************/
36 |
37 | /**
38 | * Create lines to test their functionalities
39 | */
40 | void lv_test_line_1(void)
41 | {
42 | static const lv_point_t p[] = {{5, 5}, {60, 5}, {120, 65}};
43 |
44 | /* Create a default object*/
45 | lv_obj_t * line1 = lv_line_create(lv_disp_get_scr_act(NULL), NULL);
46 | lv_obj_set_pos(line1, 10, 10);
47 | lv_line_set_points(line1, p, 3);
48 |
49 | /*Test y invert*/
50 | lv_obj_t * line2 = lv_line_create(lv_disp_get_scr_act(NULL), line1);
51 | lv_line_set_y_invert(line2, true);
52 | lv_obj_align(line2, line1, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 5);
53 |
54 | /*Test styling*/
55 | static lv_style_t style1;
56 | lv_style_copy(&style1, &lv_style_plain);
57 |
58 | style1.line.color = LV_COLOR_RED;
59 | style1.line.width = 20;
60 |
61 | lv_obj_t * line3 = lv_line_create(lv_disp_get_scr_act(NULL), line2);
62 | lv_line_set_style(line3, LV_LINE_STYLE_MAIN, &style1);
63 | lv_obj_align(line3, line1, LV_ALIGN_OUT_RIGHT_TOP, 5, 0);
64 | lv_obj_set_hidden(line3, false);
65 |
66 | /*Test rounding*/
67 | static lv_style_t style2;
68 | lv_style_copy(&style2, &style1);
69 | style2.line.rounded = 1;
70 |
71 | lv_obj_t * line4 = lv_line_create(lv_disp_get_scr_act(NULL), line3);
72 | lv_line_set_style(line4, LV_LINE_STYLE_MAIN, &style2);
73 | lv_obj_align(line4, line3, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 5);
74 | lv_obj_set_hidden(line4, false);
75 | }
76 |
77 |
78 | /**********************
79 | * STATIC FUNCTIONS
80 | **********************/
81 |
82 | #endif /*LV_USE_LINE && LV_USE_TESTS*/
83 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_font/lv_font.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_font.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 |
10 | #include "lv_font.h"
11 | #include "../lv_misc/lv_utils.h"
12 | #include "../lv_misc/lv_log.h"
13 |
14 | /*********************
15 | * DEFINES
16 | *********************/
17 |
18 | /**********************
19 | * TYPEDEFS
20 | **********************/
21 |
22 | /**********************
23 | * STATIC PROTOTYPES
24 | **********************/
25 |
26 | /**********************
27 | * STATIC VARIABLES
28 | **********************/
29 |
30 | /**********************
31 | * GLOBAL PROTOTYPES
32 | **********************/
33 |
34 | /**********************
35 | * MACROS
36 | **********************/
37 |
38 | /**********************
39 | * GLOBAL FUNCTIONS
40 | **********************/
41 |
42 | /**
43 | * Return with the bitmap of a font.
44 | * @param font_p pointer to a font
45 | * @param letter an UNICODE character code
46 | * @return pointer to the bitmap of the letter
47 | */
48 | const uint8_t * lv_font_get_glyph_bitmap(const lv_font_t * font_p, uint32_t letter)
49 | {
50 | return font_p->get_glyph_bitmap(font_p, letter);
51 | }
52 |
53 | /**
54 | * Get the descriptor of a glyph
55 | * @param font_p pointer to font
56 | * @param dsc_out store the result descriptor here
57 | * @param letter an UNICODE letter code
58 | * @return true: descriptor is successfully loaded into `dsc_out`.
59 | * false: the letter was not found, no data is loaded to `dsc_out`
60 | */
61 | bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter, uint32_t letter_next)
62 | {
63 | return font_p->get_glyph_dsc(font_p, dsc_out, letter, letter_next);
64 | }
65 |
66 | /**
67 | * Get the width of a glyph with kerning
68 | * @param font pointer to a font
69 | * @param letter an UNICODE letter
70 | * @param letter_next the next letter after `letter`. Used for kerning
71 | * @return the width of the glyph
72 | */
73 | uint16_t lv_font_get_glyph_width(const lv_font_t * font, uint32_t letter, uint32_t letter_next)
74 | {
75 | lv_font_glyph_dsc_t g;
76 | bool ret;
77 | ret = lv_font_get_glyph_dsc(font, &g, letter, letter_next);
78 | if(ret) return g.adv_w;
79 | else return 0;
80 | }
81 |
82 | /**********************
83 | * STATIC FUNCTIONS
84 | **********************/
85 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_draw_label.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_draw_label.h
3 | *
4 | */
5 |
6 | #ifndef LV_DRAW_LABEL_H
7 | #define LV_DRAW_LABEL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_draw.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 |
22 | /**********************
23 | * TYPEDEFS
24 | **********************/
25 |
26 | /** Store some info to speed up drawing of very large texts
27 | * It takes a lot of time to get the first visible character because
28 | * all the previous characters needs to be checked to calculate the positions.
29 | * This structure stores an earlier (e.g. at -1000 px) coordinate and the index of that line.
30 | * Therefore the calculations can start from here.*/
31 | typedef struct {
32 | /** Index of the line at `y` coordinate*/
33 | int32_t line_start;
34 |
35 | /** Give the `y` coordinate of the first letter at `line start` index. Relative to the label's coordinates*/
36 | int32_t y;
37 |
38 | /** The 'y1' coordinate of the label when the hint was saved.
39 | * Used to invalidate the hint if the label has moved too much. */
40 | int32_t coord_y;
41 | }lv_draw_label_hint_t;
42 |
43 | /**********************
44 | * GLOBAL PROTOTYPES
45 | **********************/
46 |
47 | /**
48 | * Write a text
49 | * @param coords coordinates of the label
50 | * @param mask the label will be drawn only in this area
51 | * @param style pointer to a style
52 | * @param opa_scale scale down all opacities by the factor
53 | * @param txt 0 terminated text to write
54 | * @param flag settings for the text from 'txt_flag_t' enum
55 | * @param offset text offset in x and y direction (NULL if unused)
56 | * @param sel_start start index of selected area (`LV_LABEL_TXT_SEL_OFF` if none)
57 | * @param sel_end end index of selected area (`LV_LABEL_TXT_SEL_OFF` if none)
58 | */
59 | void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale,
60 | const char * txt, lv_txt_flag_t flag, lv_point_t * offset, uint16_t sel_start, uint16_t sel_end,
61 | lv_draw_label_hint_t * hint);
62 |
63 | /**********************
64 | * MACROS
65 | **********************/
66 |
67 | #ifdef __cplusplus
68 | } /* extern "C" */
69 | #endif
70 |
71 | #endif /*LV_DRAW_LABEL_H*/
72 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/lvgl.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lvgl.h
3 | * Include all LittleV GL related headers
4 | */
5 |
6 | #ifndef LVGL_H
7 | #define LVGL_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 |
17 | #include "src/lv_version.h"
18 |
19 | #include "src/lv_misc/lv_log.h"
20 | #include "src/lv_misc/lv_task.h"
21 | #include "src/lv_misc/lv_math.h"
22 | #include "src/lv_misc/lv_async.h"
23 |
24 | #include "src/lv_hal/lv_hal.h"
25 |
26 | #include "src/lv_core/lv_obj.h"
27 | #include "src/lv_core/lv_group.h"
28 |
29 | #include "src/lv_core/lv_refr.h"
30 | #include "src/lv_core/lv_disp.h"
31 |
32 | #include "src/lv_themes/lv_theme.h"
33 |
34 | #include "src/lv_font/lv_font.h"
35 | #include "src/lv_font/lv_font_fmt_txt.h"
36 |
37 | #include "src/lv_objx/lv_btn.h"
38 | #include "src/lv_objx/lv_imgbtn.h"
39 | #include "src/lv_objx/lv_img.h"
40 | #include "src/lv_objx/lv_label.h"
41 | #include "src/lv_objx/lv_line.h"
42 | #include "src/lv_objx/lv_page.h"
43 | #include "src/lv_objx/lv_cont.h"
44 | #include "src/lv_objx/lv_list.h"
45 | #include "src/lv_objx/lv_chart.h"
46 | #include "src/lv_objx/lv_table.h"
47 | #include "src/lv_objx/lv_cb.h"
48 | #include "src/lv_objx/lv_bar.h"
49 | #include "src/lv_objx/lv_slider.h"
50 | #include "src/lv_objx/lv_led.h"
51 | #include "src/lv_objx/lv_btnm.h"
52 | #include "src/lv_objx/lv_kb.h"
53 | #include "src/lv_objx/lv_ddlist.h"
54 | #include "src/lv_objx/lv_roller.h"
55 | #include "src/lv_objx/lv_ta.h"
56 | #include "src/lv_objx/lv_canvas.h"
57 | #include "src/lv_objx/lv_win.h"
58 | #include "src/lv_objx/lv_tabview.h"
59 | #include "src/lv_objx/lv_tileview.h"
60 | #include "src/lv_objx/lv_mbox.h"
61 | #include "src/lv_objx/lv_gauge.h"
62 | #include "src/lv_objx/lv_lmeter.h"
63 | #include "src/lv_objx/lv_sw.h"
64 | #include "src/lv_objx/lv_kb.h"
65 | #include "src/lv_objx/lv_arc.h"
66 | #include "src/lv_objx/lv_preload.h"
67 | #include "src/lv_objx/lv_calendar.h"
68 | #include "src/lv_objx/lv_spinbox.h"
69 |
70 | #include "src/lv_draw/lv_img_cache.h"
71 |
72 | /*********************
73 | * DEFINES
74 | *********************/
75 |
76 | /**********************
77 | * TYPEDEFS
78 | **********************/
79 |
80 | /**********************
81 | * GLOBAL PROTOTYPES
82 | **********************/
83 |
84 | /**********************
85 | * MACROS
86 | **********************/
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /*LVGL_H*/
93 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_draw/lv_img_cache.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_img_cache.h
3 | *
4 | */
5 |
6 | #ifndef LV_IMG_CACHE_H
7 | #define LV_IMG_CACHE_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_img_decoder.h"
17 |
18 | /*********************
19 | * DEFINES
20 | *********************/
21 |
22 | /**********************
23 | * TYPEDEFS
24 | **********************/
25 |
26 | /**
27 | * When loading images from the network it can take a long time to download and decode the image.
28 | *
29 | * To avoid repeating this heavy load images can be cached.
30 | */
31 | typedef struct
32 | {
33 | lv_img_decoder_dsc_t dec_dsc; /**< Image information */
34 |
35 | /** Count the cache entries's life. Add `time_tio_open` to `life` when the entry is used.
36 | * Decrement all lifes by one every in every ::lv_img_cache_open.
37 | * If life == 0 the entry can be reused */
38 | int32_t life;
39 | } lv_img_cache_entry_t;
40 |
41 | /**********************
42 | * GLOBAL PROTOTYPES
43 | **********************/
44 |
45 | /**
46 | * Open an image using the image decoder interface and cache it.
47 | * The image will be left open meaning if the image decoder open callback allocated memory then it will remain.
48 | * The image is closed if a new image is opened and the new image takes its place in the cache.
49 | * @param src source of the image. Path to file or pointer to an `lv_img_dsc_t` variable
50 | * @param style style of the image
51 | * @return pointer to the cache entry or NULL if can open the image
52 | */
53 | lv_img_cache_entry_t * lv_img_cache_open(const void * src, const lv_style_t * style);
54 |
55 | /**
56 | * Set the number of images to be cached.
57 | * More cached images mean more opened image at same time which might mean more memory usage.
58 | * E.g. if 20 PNG or JPG images are open in the RAM they consume memory while opened in the cache.
59 | * @param new_entry_cnt number of image to cache
60 | */
61 | void lv_img_cache_set_size(uint16_t new_slot_num);
62 |
63 | /**
64 | * Invalidate an image source in the cache.
65 | * Useful if the image source is updated therefore it needs to be cached again.
66 | * @param src an image source path to a file or pointer to an `lv_img_dsc_t` variable.
67 | */
68 | void lv_img_cache_invalidate_src(const void * src);
69 |
70 | /**********************
71 | * MACROS
72 | **********************/
73 |
74 | #ifdef __cplusplus
75 | } /* extern "C" */
76 | #endif
77 |
78 | #endif /*LV_IMG_CACHE_H*/
79 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_led.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_led.h"
10 |
11 | #if LV_USE_LED && LV_USE_TESTS
12 |
13 | /*********************
14 | * DEFINES
15 | *********************/
16 |
17 | /**********************
18 | * TYPEDEFS
19 | **********************/
20 |
21 | /**********************
22 | * STATIC PROTOTYPES
23 | **********************/
24 |
25 | /**********************
26 | * STATIC VARIABLES
27 | **********************/
28 |
29 | /**********************
30 | * MACROS
31 | **********************/
32 |
33 | /**********************
34 | * GLOBAL FUNCTIONS
35 | **********************/
36 |
37 | /**
38 | * Create LEDs to test their functionalities
39 | */
40 | void lv_test_led_1(void)
41 | {
42 | /* Create a default object*/
43 | lv_obj_t * led1 = lv_led_create(lv_disp_get_scr_act(NULL), NULL);
44 | lv_obj_set_pos(led1, 20, 20);
45 |
46 | /*Create styles LED*/
47 | static lv_style_t style;
48 | lv_style_copy(&style, &lv_style_pretty_color);
49 | style.body.shadow.width = 10;
50 | style.body.radius = LV_RADIUS_CIRCLE;
51 | style.body.border.width = 3;
52 | style.body.border.opa = LV_OPA_30;
53 | style.body.main_color = lv_color_make(0xb5, 0x0f, 0x04);
54 | style.body.grad_color = lv_color_make(0x50, 0x07, 0x02);
55 | style.body.border.color = lv_color_make(0xfa, 0x0f, 0x00);
56 | style.body.shadow.color = lv_color_make(0xb5, 0x0f, 0x04);
57 |
58 | lv_obj_t * led2 = lv_led_create(lv_disp_get_scr_act(NULL), NULL);
59 | lv_led_set_style(led2, LV_LED_STYLE_MAIN, &style);
60 | lv_obj_align(led2, led1, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
61 |
62 | /*Turned ON LED*/
63 | lv_obj_t * led_on = lv_led_create(lv_disp_get_scr_act(NULL), led2);
64 | lv_obj_align(led_on, led2, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
65 | lv_led_on(led_on);
66 |
67 | /*Tuned OFF LED*/
68 | lv_obj_t * led_off = lv_led_create(lv_disp_get_scr_act(NULL), led_on);
69 | lv_obj_align(led_off, led_on, LV_ALIGN_OUT_RIGHT_MID, 10, 0);
70 | lv_led_off(led_off);
71 |
72 | /*Arbitrary brightness*/
73 | lv_obj_t * led_x = lv_led_create(lv_disp_get_scr_act(NULL), led_off);
74 | lv_obj_align(led_x, led_off, LV_ALIGN_OUT_RIGHT_MID, 10, 0);
75 | lv_led_set_bright(led_x, 170);
76 |
77 |
78 | }
79 |
80 |
81 | /**********************
82 | * STATIC FUNCTIONS
83 | **********************/
84 |
85 | #endif /*LV_USE_LED && LV_USE_TESTS*/
86 |
--------------------------------------------------------------------------------
/components/lvgl/lvgl/src/lv_core/lv_refr.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_refr.h
3 | *
4 | */
5 |
6 | #ifndef LV_REFR_H
7 | #define LV_REFR_H
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | /*********************
14 | * INCLUDES
15 | *********************/
16 | #include "lv_obj.h"
17 | #include
18 |
19 | /*********************
20 | * DEFINES
21 | *********************/
22 |
23 | /**********************
24 | * TYPEDEFS
25 | **********************/
26 |
27 | /**********************
28 | * STATIC PROTOTYPES
29 | **********************/
30 |
31 | /**********************
32 | * STATIC VARIABLES
33 | **********************/
34 |
35 | /**********************
36 | * MACROS
37 | **********************/
38 |
39 | /**********************
40 | * GLOBAL FUNCTIONS
41 | **********************/
42 |
43 | /**
44 | * Initialize the screen refresh subsystem
45 | */
46 | void lv_refr_init(void);
47 |
48 | /**
49 | * Redraw the invalidated areas now.
50 | * Normally the redrawing is periodically executed in `lv_task_handler` but a long blocking process
51 | * can prevent the call of `lv_task_handler`. In this case if the the GUI is updated in the process
52 | * (e.g. progress bar) this function can be called when the screen should be updated.
53 | * @param disp pointer to display to refresh. NULL to refresh all displays.
54 | */
55 | void lv_refr_now(lv_disp_t * disp);
56 |
57 | /**
58 | * Invalidate an area on display to redraw it
59 | * @param area_p pointer to area which should be invalidated (NULL: delete the invalidated areas)
60 | * @param disp pointer to display where the area should be invalidated (NULL can be used if there is
61 | * only one display)
62 | */
63 | void lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p);
64 |
65 | /**
66 | * Get the display which is being refreshed
67 | * @return the display being refreshed
68 | */
69 | lv_disp_t * lv_refr_get_disp_refreshing(void);
70 |
71 | /**
72 | * Set the display which is being refreshed.
73 | * It shouldn1t be used directly by the user.
74 | * It can be used to trick the drawing functions about there is an active display.
75 | * @param the display being refreshed
76 | */
77 | void lv_refr_set_disp_refreshing(lv_disp_t * disp);
78 |
79 | /**
80 | * Called periodically to handle the refreshing
81 | * @param task pointer to the task itself
82 | */
83 | void lv_disp_refr_task(lv_task_t * task);
84 |
85 | /**********************
86 | * STATIC FUNCTIONS
87 | **********************/
88 |
89 | #ifdef __cplusplus
90 | } /* extern "C" */
91 | #endif
92 |
93 | #endif /*LV_REFR_H*/
94 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_lmeter.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include
10 |
11 | #include "lv_test_lmeter.h"
12 |
13 | #if LV_USE_LMETER && LV_USE_TESTS
14 |
15 | /*********************
16 | * DEFINES
17 | *********************/
18 |
19 | /**********************
20 | * TYPEDEFS
21 | **********************/
22 |
23 | /**********************
24 | * STATIC PROTOTYPES
25 | **********************/
26 |
27 | /**********************
28 | * STATIC VARIABLES
29 | **********************/
30 |
31 | /**********************
32 | * MACROS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL FUNCTIONS
37 | **********************/
38 | /**
39 | * Create line meters to test their functionalities
40 | */
41 | void lv_test_lmeter_1(void)
42 | {
43 | /* Create a default object*/
44 | lv_obj_t * lmeter1 = lv_lmeter_create(lv_disp_get_scr_act(NULL), NULL);
45 | lv_obj_set_pos(lmeter1, 10, 10);
46 | lv_lmeter_set_value(lmeter1, 60);
47 |
48 | /*Copy the previous line meter and set smaller size for it*/
49 | lv_obj_t * lmeter2 = lv_lmeter_create(lv_disp_get_scr_act(NULL), lmeter1);
50 | lv_obj_set_size(lmeter2, LV_DPI / 2, LV_DPI / 2);
51 | lv_obj_align(lmeter2, lmeter1, LV_ALIGN_OUT_BOTTOM_MID, 0, 10);
52 |
53 | /*Create a styled line meter*/
54 | static lv_style_t style3;
55 | lv_style_copy(&style3, &lv_style_pretty);
56 | style3.body.main_color = LV_COLOR_GREEN;
57 | style3.body.grad_color = LV_COLOR_RED;
58 | style3.body.padding.left = 4;
59 | style3.body.border.color = LV_COLOR_GRAY; /*Means the needle middle*/
60 | style3.line.width = 2;
61 | style3.line.color = LV_COLOR_SILVER;
62 |
63 | lv_obj_t * lmeter3 = lv_lmeter_create(lv_disp_get_scr_act(NULL), lmeter1);
64 | lv_obj_align(lmeter3, lmeter1, LV_ALIGN_OUT_RIGHT_MID, 20, 0);
65 | lv_obj_set_style(lmeter3, &style3);
66 | lv_lmeter_set_scale(lmeter3, 270, 41);
67 | lv_lmeter_set_range(lmeter3, -100, 100);
68 | lv_lmeter_set_value(lmeter3, 50);
69 |
70 | /*Copy the modified 'lmeter3' and set a smaller size for it*/
71 | lv_obj_t * lmeter4 = lv_lmeter_create(lv_disp_get_scr_act(NULL), lmeter3);
72 | lv_obj_set_size(lmeter4, 60, 60);
73 | lv_obj_align(lmeter4, lmeter3, LV_ALIGN_OUT_BOTTOM_MID, 0, 10);
74 |
75 | }
76 |
77 | /**********************
78 | * STATIC FUNCTIONS
79 | **********************/
80 |
81 | #endif /*LV_USE_LMETER && LV_USE_TESTS*/
82 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_sw.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include /*For printf in the action*/
10 | #include "lv_test_sw.h"
11 |
12 | #if LV_USE_SW && LV_USE_TESTS
13 |
14 | /*********************
15 | * DEFINES
16 | *********************/
17 |
18 | /**********************
19 | * TYPEDEFS
20 | **********************/
21 |
22 | /**********************
23 | * STATIC PROTOTYPES
24 | **********************/
25 | static void event_handler(lv_obj_t * sw, lv_event_t event);
26 |
27 | /**********************
28 | * STATIC VARIABLES
29 | **********************/
30 |
31 | /**********************
32 | * MACROS
33 | **********************/
34 |
35 | /**********************
36 | * GLOBAL FUNCTIONS
37 | **********************/
38 |
39 | /**
40 | * Create switches to test their functionalities
41 | */
42 | void lv_test_sw_1(void)
43 | {
44 | /* Default object */
45 | lv_obj_t * sw1 = lv_sw_create(lv_disp_get_scr_act(NULL), NULL);
46 | lv_obj_set_pos(sw1, 10, 10);
47 | lv_obj_set_event_cb(sw1, event_handler);
48 |
49 | static lv_style_t bg;
50 | static lv_style_t indic;
51 |
52 | lv_style_copy(&bg, &lv_style_pretty);
53 | bg.body.padding.left = -5;
54 | bg.body.padding.right = -5;
55 | bg.body.padding.top = -5;
56 | bg.body.padding.bottom = -5;
57 |
58 | lv_style_copy(&indic, &lv_style_pretty_color);
59 | indic.body.padding.left = 8;
60 | indic.body.padding.right = 8;
61 | indic.body.padding.top = 8;
62 | indic.body.padding.bottom = 8;
63 |
64 | lv_obj_t * sw2 = lv_sw_create(lv_disp_get_scr_act(NULL), sw1);
65 | lv_sw_set_style(sw2, LV_SW_STYLE_BG, &bg);
66 | lv_sw_set_style(sw2, LV_SW_STYLE_INDIC, &indic);
67 | lv_sw_set_style(sw2, LV_SW_STYLE_KNOB_OFF, &lv_style_btn_pr);
68 | lv_sw_set_style(sw2, LV_SW_STYLE_KNOB_ON, &lv_style_btn_tgl_pr);
69 |
70 | lv_sw_on(sw2, LV_ANIM_OFF);
71 | lv_obj_align(sw2, sw1, LV_ALIGN_OUT_RIGHT_MID, 20, 0);
72 |
73 | lv_obj_t * sw3 = lv_sw_create(lv_disp_get_scr_act(NULL), sw2);
74 | lv_obj_align(sw3, sw2, LV_ALIGN_OUT_RIGHT_MID, 20, 0);
75 |
76 | }
77 |
78 | /**********************
79 | * STATIC FUNCTIONS
80 | **********************/
81 |
82 | static void event_handler(lv_obj_t * sw, lv_event_t event)
83 | {
84 |
85 | if(event == LV_EVENT_VALUE_CHANGED) {
86 | #if LV_EX_PRINTF
87 | printf("Switch state: %d\n", lv_sw_get_state(sw));
88 | #endif
89 | }
90 | }
91 |
92 |
93 | #endif /*LV_USE_SW && LV_USE_TESTS*/
94 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_test_preload.c
3 | *
4 | */
5 |
6 | /*********************
7 | * INCLUDES
8 | *********************/
9 | #include "lv_test_preload.h"
10 | #if LV_USE_PRELOAD && LV_USE_TESTS
11 |
12 | /*********************
13 | * DEFINES
14 | *********************/
15 |
16 | /**********************
17 | * TYPEDEFS
18 | **********************/
19 |
20 | /**********************
21 | * STATIC PROTOTYPES
22 | **********************/
23 |
24 | /**********************
25 | * STATIC VARIABLES
26 | **********************/
27 |
28 | /**********************
29 | * MACROS
30 | **********************/
31 |
32 | /**********************
33 | * GLOBAL FUNCTIONS
34 | **********************/
35 |
36 | /**
37 | * Create preloads to test their functionalities
38 | */
39 | void lv_test_preload_1(void)
40 | {
41 | /* Create a default object. It will look strange with the default style*/
42 | lv_obj_t * preload1 = lv_preload_create(lv_disp_get_scr_act(NULL), NULL);
43 | lv_obj_set_pos(preload1, 10, 10);
44 |
45 | /* Create and apply a style*/
46 | static lv_style_t style1;
47 | lv_style_copy(&style1, &lv_style_plain);
48 | style1.line.color = LV_COLOR_RED;
49 | style1.line.width = 8;
50 | style1.line.rounded = 1;
51 | style1.body.border.width = 2;
52 | style1.body.border.color = LV_COLOR_MAROON;
53 | style1.body.padding.left = 3;
54 | style1.body.padding.right = 3;
55 | style1.body.padding.top = 3;
56 | style1.body.padding.bottom = 3;
57 | lv_obj_t * preload2 = lv_preload_create(lv_disp_get_scr_act(NULL), NULL);
58 | lv_obj_set_size(preload2, 60, 60);
59 | lv_preload_set_style(preload2, LV_PRELOAD_STYLE_MAIN, &style1);
60 | lv_obj_align(preload2, preload1, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
61 |
62 |
63 | lv_obj_t * preload3 = lv_preload_create(lv_disp_get_scr_act(NULL), preload2);
64 | lv_preload_set_arc_length(preload3, 90);
65 | lv_preload_set_spin_time(preload3, 5000);
66 | lv_obj_align(preload3, preload2, LV_ALIGN_OUT_RIGHT_TOP, 20, 0);
67 | //
68 | // /* Copy 'preload2' and set a new style for it */
69 | // static lv_style_t style1;
70 | // lv_style_copy(&style1, &lv_style_plain);
71 | // style1.line.color = LV_COLOR_RED;
72 | // style1.line.width = 8;
73 | // lv_obj_t * preload3 = lv_preload_create(lv_scr_act(NULL), preload2);
74 | // lv_obj_set_style(preload3, &style1);
75 |
76 | }
77 |
78 |
79 | /**********************
80 | * STATIC FUNCTIONS
81 | **********************/
82 |
83 | #endif /*LV_USE_PRELOAD && LV_USE_TESTS*/
84 |
--------------------------------------------------------------------------------
/components/lv_examples/lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.c:
--------------------------------------------------------------------------------
1 | /**
2 | * @file lv_tutorial_themes.c
3 | *
4 | */
5 |
6 | /*
7 | * -------------------------------------------------------------
8 | * See how the customize with themes much faster and simpler
9 | * --------------------------------------------------------------
10 | *
11 | * To set up styles you need some deeper knowledge about graphics library and
12 | * requires to be a designer a little bit. In addition it takes quite much time.
13 | *
14 | * To address this issue you can use 'themes'.
15 | * The themes are style collections for every object type with all the required styles.
16 | *
17 | * In 'lv_conf.h' you can enable the themes. E.g.: LV_USE_THEME_ALIEN 1
18 | *
19 | * When you initialize a theme you can assign a HUE (from HSV color space) and a font:
20 | * For example to initialize the 'Alien' theme with a greenish color:
21 | * lv_theme_t *th = lv_theme_alien_init(130, &lv_font_dejavu_40);
22 | *
23 | * You have two options to use the themes:
24 | * 1. Set the styles in it directly: lv_bar_set_style(my_bar, LV_BAR_STYLE_BG, th->bar.bg);
25 | * 2. Set a system theme and let the library to create objects with the theme's styles
26 | * E.g. lv_theme_set_current(th);
27 | */
28 |
29 | /*********************
30 | * INCLUDES
31 | *********************/
32 |
33 | #include "lv_tutorial_themes.h"
34 | #if LV_USE_TUTORIALS && LV_USE_THEME_ALIEN
35 |
36 | #include "../2_objects/lv_tutorial_objects.h"
37 |
38 |
39 | /*********************
40 | * DEFINES
41 | *********************/
42 |
43 | /**********************
44 | * TYPEDEFS
45 | **********************/
46 |
47 | /**********************
48 | * STATIC PROTOTYPES
49 | **********************/
50 |
51 | /**********************
52 | * STATIC VARIABLES
53 | **********************/
54 |
55 | /**********************
56 | * MACROS
57 | **********************/
58 |
59 | /**********************
60 | * GLOBAL FUNCTIONS
61 | **********************/
62 |
63 | /**
64 | * Initialize a theme and create the same objects like "lv_tutorial_objects'
65 | */
66 | void lv_tutorial_themes(void)
67 | {
68 | /*Initialize the alien theme
69 | * 210: a green HUE value
70 | * NULL: use the default font (LV_FONT_DEFAULT)*/
71 | lv_theme_t * th = lv_theme_alien_init(210, NULL);
72 |
73 | /*Set the surent system theme*/
74 | lv_theme_set_current(th);
75 |
76 | /*Create the 'lv_tutorial_objects'*/
77 | lv_tutorial_objects();
78 |
79 | }
80 |
81 | /**********************
82 | * STATIC FUNCTIONS
83 | **********************/
84 |
85 | #endif /*LV_USE_TUTORIALS*/
86 |
--------------------------------------------------------------------------------