![]() ![]() It sets the port into “raw” mode (character at a time and no translations), and sets the read timeout to 10 seconds. ![]() This opens and initialises the serial device and sets the baud rate. int serialOpen (char *device, int baud).Then the following functions are available: To use, you need to make sure your program includes the following file: #include You just specify the device name in the initial open function. It can use the on-board serial port, or any USB serial device with no special distinctions between them. WiringPi includes a simplified serial port handling library. ![]()
0 Comments
Leave a Reply. |