diff --git a/pi3/pi3.c b/pi3/pi3.c index b2111e1d601e0f9bcdecec94cba20ee01df7fd04..5e6c91abef53945050cb937cf395f27367f1e79e 100644 --- a/pi3/pi3.c +++ b/pi3/pi3.c @@ -11,7 +11,7 @@ #include <linux/i2c-dev.h> #include <sys/ioctl.h> #include <pthread.h> -#include <jansson.h> +#include <jansson.h> // Json 파일에 대한 라이브러리로 추가적인 설치가 필요합니다. #include <arpa/inet.h> #include <sys/socket.h> #include <wiringPi.h> @@ -50,9 +50,6 @@ typedef struct { int Temp; } SensorData; -int ReadMode; -int KMotorValue; - int fd; int BLEN=1; @@ -399,7 +396,7 @@ void* lcdThreadFunction(void* arg) { usleep(1000000); // Delay for 1 second } -} // Lcd print +} // Lcd display void *ServoMotorThreadFunction(void *arg){ while(1){ @@ -434,7 +431,7 @@ void* buttonThreadFunction(void* arg) { if(-1 == GPIOUnexport(Button)) return NULL; return NULL; -} // button control +} // button read /* Error 관련 함수