Open main menu

Changes

X735-script

510 bytes added, 12:54, 22 July 2023
* press <code>7-8</code> seconds to force shutdown.
==OthersRead fan speed==<code>read_fan_speed.py</code> is a python file on how to read the speed of the pwm fan. Run the following command to get the speed of the fan: cd ~x735-script sudo python3 read_fan_speed.py This python file depends on the third-party python library `Rpi.GPIO`. In the official Raspberry Pi OS, this library is installed by default. If you run this file and get some errors, try to run the following command to install the Rpi.GPIOy library. sudo apt-get install -y python3-smbus python3-rpi.gpio 
<code>fan-rpi.py</code> and <code>fan-pigpio.py</code> are no longer used, and are reserved here for research and use by python lovers only.