In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to use Python to develop device programs". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use Python to develop device programs".
The mode of use is as follows:
1. Download the libdtpython.an in the attachment at the end of the article and copy it to the\ code-1.0\ vendor\ hisi\ hi3861\ hi3861\ build\ libs directory, as shown below:
2. [optional] write Python code (no library support is currently provided) and convert it to a C string using the Txt2Str tool in the attachment at the end of the text. The usage is as follows:
Description:
Txt2Str stores the Python code in a C file as a C string (such as test.c in the figure above)
Add the converted C file to the project to use the Python code in the C code (see the example in the attachment at the end of the article)
Note: there is currently no easy way to burn the Python source file directly to the device, so the above steps are required.
3. Use Python code in device development. Examples are as follows:
4. The running results are as follows:
Thank you for your reading, the above is the content of "how to use Python to develop equipment programs". After the study of this article, I believe you have a deeper understanding of how to use Python to develop equipment programs, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.