module Serial:sig..end
Serial gives access to a
serial connection
using the Pi's UART0 peripheral.
References
val init : unit -> unitinit () initializes the serial connection.val read_byte : unit -> intread_byte () blocks until a byte becomes available on the
serial connection.val try_read_byte : unit -> int optiontry_read_byte () is Some b a byte could be read from the
serial connection and None otherwise.val write_byte : int -> unitwrite_byte b writes the byte b on the serial connection.val write : string -> unitwrite s writes s on the serial connection.val writef : ('a, Format.formatter, unit) Pervasives.format -> 'awritef fmt ... write a string formatted according to fmt
on the serial connection.