Serial class med valgfri baudrate
Dependents: Fancy-Terminal-Menu Fancy-Terminal
Revision 2:64e7d86dbac1, committed 2015-10-16
- Comitter:
- madmonkeyman82
- Date:
- Fri Oct 16 16:31:49 2015 +0000
- Parent:
- 1:601254e70221
- Commit message:
- fixup;
Changed in this revision
SerialTerminal.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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