参考:RPi Serial Connection 本文来自:http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uart Using the UART If you are running Raspbian or similar then the UART will be used as a serial console. Using a suitable cable, such as…