📄️ Auto-Run Python Code on Boot
In the previous sections, we learned many Python embedded programming cases. Some of you may wonder: can we place our already-written Python code on the WalnutPi and have it automatically execute on boot? The answer is yes, and it's a very practical feature. This section will explain it in detail.
📄️ Calling Terminal Commands from Python
This chapter has covered Python hardware control and some common programming techniques. Beyond that, we can also use Python to directly invoke Linux commands on the WalnutPi system. With this capability, Python programs can read system information, launch software, etc., via commands, making Python even more versatile on the WalnutPi.