树莓派-电位器模块实验
# 接线图 # 树莓派管脚图 # 代码 # C #include <stdio.h>#include <wiringPi.h>#include <pcf8591.h>#define PCF 120int main (void){ int value ; wiringPiSetup () ; // Setup pcf8591 on base pin 120, and address 0x48 pcf8591Setup (PCF, 0x48) ; while(1) // loop...
more...