Open main menu

Changes

X729-script

759 bytes added, 18:31, 22 July 2023
* press button switch <code>3</code> seconds to safe shutdown,
* press <code>7-8</code> seconds to force shutdown.
 
==Sample File==
The example programs are only suitable for advanced players, and you can construct your own usage scenarios according to the example programs.
 
Each example program demonstrates a different function:
 
read_fan_speed.py: Read the pwm fan running speed;
cd ~x729-script
sudo python3 sample/read_fan_speed.py
 
pld.py: AC Power supply loss dection script;
cd ~x729-script
sudo python3 sample/pld.py.py
 
plsd.py: Auto shutdown when AC power loss or power adapter failure script;(Added auto shuntdown function base pld.py)
cd ~x729-script
sudo python3 sample/plsd.py
 
buzzer.py: demonstrates how the buzzer will sound when power supply is lost, which is very important in some usage scenarios.
cd ~x729-script
sudo python3 sample/buzzer.py
==Read fan speed==