目的:通过温度传感器获取温度值,打印输出。
/********************************************************************** > File Name: first_weekend.c > Author: Huaqiong Xu > Created Time: Mon 17 Sep 2018 11:51:31 UTC ***********************************************************************/ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <string.h> #include <time.h> #include <errno.h> #include <fcntl.h> int get_temperature( float *temperature); int main(int argc, char *argv[])
树莓派----温度传感器
最新推荐文章于 2023-04-13 00:15:21 发布