树莓派练习程序(光敏电阻)

光敏电阻模块以下图:html 树莓派的引脚以下图:git 咱们将Vcc引脚链接物理接口2,GND引脚链接物理接口39,DO引脚链接物理接口40。编程 实物链接以下图:post 编程使用WiringPi库,使用wpi引脚编码方式控制GPIO。编码 代码以下:spa #include <wiringPi.h> #include <stdio.h> #include <sys/time.h> #def
相关文章
相关标签/搜索