Prova
Dependencies: mbed
Fork of STMNucleoF401RE_ExampleCode_01_SerialBau by
Diff: main.cpp
- Revision:
- 0:2b1f330bb53a
- Child:
- 2:8a544adebbce
diff -r 000000000000 -r 2b1f330bb53a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Oct 24 15:52:57 2015 +0000 @@ -0,0 +1,23 @@ +/**************************************************** +* FAST PROTOTYPING WITH NUCLEO * +* Example Code 01: Serial baud * +* Author: Mauro D'Angelo * +* Organization: Perlatecnica no-profit organization * +***************************************************** +* Hyperterminal configuration * +* 115200 bauds, 8-bit data, no parity * +*****************************************************/ + +#include "mbed.h" + +// Instanzia un oggetto di tipo Serial sui pin Tx e Rx della porta USB e gli da il nome pc (trattandosi della porta USB connessa al PC) +Serial pc(USBTX, USBRX); + +int main() { + // Mofica del baudrate + pc.baud(115200); + + // Stampa sulla seriale la stringa + pc.printf("Hello World !\r\n"); +} + \ No newline at end of file