Serial class med valgfri baudrate
Dependents: Fancy-Terminal-Menu Fancy-Terminal
Diff: SerialTerminal.h
- Revision:
- 2:64e7d86dbac1
- Parent:
- 0:f7f6e3220ea0
--- a/SerialTerminal.h Fri Oct 16 15:59:39 2015 +0000 +++ b/SerialTerminal.h Fri Oct 16 16:31:49 2015 +0000 @@ -3,9 +3,10 @@ #ifndef MBED_TERMINAL_H #define MBED_TERMINAL_H -/** Control and display on an ANSI/VT100 Terminal +/** Control and display on an ANSI/VT100 Terminal (puTTy or similar...) * * This allows you to control an ANSI serial terminal + * Set TX pin and RX . also spesify bauderate if needed different than default 9600 */ class SerialTerminal : public Serial { public: @@ -13,9 +14,9 @@ * * @param tx Serial transmit * @param rx Serial recieve - * @param baud Serial baudreate speed + * @param baud Serial baudreate speed (default 9600) */ - SerialTerminal(PinName tx, PinName rx, int baudrate); + SerialTerminal(PinName tx, PinName rx, int baudrate=9600); #if DOXYGEN_ONLY /** Write a character to the terminal