Skip to content

Commit 9abeba3

Browse files
authored
Update README.md
1 parent 9f452de commit 9abeba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ In LVGL project with EEZ Flow you can define user actions that can be attached t
2828

2929
![alt text](readme-images/add_event_handler_dialog.png)
3030

31-
- Step 4: Implement user action in C
31+
- Step 4: Implement user action in C or C++
3232

33-
You need to implement in C++ function called `void action_<user action name>(lv_event_t * e)`. For example, if user action is called `inc_counter` you need to implement `void action_inc_counter(lv_event_t * e);`. Declaration of all user actions can be found in generated file `actions.h`. You can implement user actions in any C file or you can add `actions.cpp` file template in your project like this:
33+
You need to implement in C or C++ a function called `void action_<user action name>(lv_event_t * e)`. For example, if user action is called `inc_counter` you need to implement `void action_inc_counter(lv_event_t * e);`. Declaration of all user actions can be found in generated file `actions.h`. You can implement user actions in any existing C or C++ file (or even INO file if you are on Arduino) or you can add `actions.cpp` file template in your project like this:
3434

3535
![alt text](readme-images/add_actions_cpp_file_template.png)
3636

0 commit comments

Comments
 (0)