# rpi-fan **Repository Path**: heanny/rpi-fan ## Basic Information - **Project Name**: rpi-fan - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-26 - **Last Updated**: 2025-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rpi-fan #### 介绍 基于树莓盘扩展板的python驱动 #### 安装教程 1. 开启I2C ```shell sudo raspi-config 选择3 Interface Options 选择I5 I2C ``` 2. 安装依赖 ```shell sudo apt-get install -y i2c-tools pip3 install smbus2 pip3 install psutil ``` 3. 设置自启 ```shell sudo vim /etc/rc.local ``` 写入 ```shell sudo python3 /root/rpi-fan/main.py & ``` 4. 其他 - 查看i2c总线 ```shell i2cdetect -l ``` - 查看i2c设备 ```shell i2cdetect -y 1 ```