Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]The generated source code cannot find the variables and arrays created in EEZ #650

Open
gao-zhida opened this issue Nov 26, 2024 · 6 comments
Assignees
Labels

Comments

@gao-zhida
Copy link

I have a question, why can't the variables created in EEZ be found in the compiled source code? Because I need to read their values on the microcontroller, but I can't find them in the source code, where should I find them?
1
2

@mvladic
Copy link
Contributor

mvladic commented Nov 26, 2024

@gao-zhida
Copy link
Author

检查此存储库:https ://github.com/eez-open/native-interface-lvgl-with-flow

从从本机代码访问流变量开始。

The file I generated using EEZ does not have vars.cpp
Uploading 3.png…

@mvladic
Copy link
Contributor

mvladic commented Nov 26, 2024

File vars.cpp is not generated by the Studio, it is coded by hand for the purpose of demonstrating how to access flow variables from the code.

@gao-zhida
Copy link
Author

File vars.cpp is not generated by the Studio, it is coded by hand for the purpose of demonstrating how to access flow variables from the code.

Understood, thank you!

@guochenwei-sp
Copy link

Variables of NATIVE type can be used in code, but you need to implement the read and write functions yourself.

@gao-zhida
Copy link
Author

NATIVE类型的变量可以在代码中使用,但是需要自己实现读写函数。

数组也是使用同样方法读写吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants