Class SerialExample
- java.lang.Object
-
- SerialExample
-
public class SerialExample extends Object
This example code demonstrates how to perform serial communications using the Raspberry Pi.- Author:
- Robert Savage
-
-
Constructor Summary
Constructors Constructor Description SerialExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
This example program supports the following optional command arguments/options: "--device (device-path)" [DEFAULT: /dev/ttyAMA0] "--baud (baud-rate)" [DEFAULT: 38400] "--data-bits (5|6|7|8)" [DEFAULT: 8] "--parity (none|odd|even)" [DEFAULT: none] "--stop-bits (1|2)" [DEFAULT: 1] "--flow-control (none|hardware|software)" [DEFAULT: none]
-
-
-
Method Detail
-
main
public static void main(String[] args) throws InterruptedException, IOException
This example program supports the following optional command arguments/options: "--device (device-path)" [DEFAULT: /dev/ttyAMA0] "--baud (baud-rate)" [DEFAULT: 38400] "--data-bits (5|6|7|8)" [DEFAULT: 8] "--parity (none|odd|even)" [DEFAULT: none] "--stop-bits (1|2)" [DEFAULT: 1] "--flow-control (none|hardware|software)" [DEFAULT: none]- Parameters:
args
-- Throws:
InterruptedException
IOException
-
-