실습2 - 1. #include #include #include #include #include #define BAUD_RATE 115200 static const char* UART2_DEV = "/dev/ttyAMA1"; // UART2 연결을 위한 장치 파일 static const int LED_PIN = 18; // GPIO 18을 사용하여 LED를 제어 unsigned char serialRead(const int fd); void serialWrite(const int fd, const unsigned char c); // 1Byte 데이터를 수신하는 함수 unsigned char serialRead(const int fd) { unsigned char x; if (read(fd, &x, 1)..