Auto-Run Python Code at Startup
In previous chapters, we learned many Python embedded programming examples. Some of you may wonder: can we place already-written Python code on the Walnut Pi and have it execute automatically at startup? The answer is yes, and it's a very practical feature. In this section, we will explain it in detail.
Calling Terminal Commands from Python
In this chapter, we've learned about Python hardware control and some common programming. Additionally, we can use Python to directly call Linux commands of the Walnut Pi system. With this capability, Python programming can read system information, launch applications, and more through commands, making Python use on the Walnut Pi even more versatile.