Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- fpapayannis
- Date:
- 2016-09-08
- Revision:
- 2:ba95dcca2d90
- Parent:
- 1:e9d1c42a73ae
- Child:
- 3:c0f6dcd350a8
File content as of revision 2:ba95dcca2d90:
#include "mbed.h"
#include "Serial.h"
//------------------------------------
// Hyperterminal configuration
// 9600 bauds, 8-bit data, no parity
//------------------------------------
#define SERIAL_TX P0_10
#define SERIAL_RX P0_11
#define LEDStick P0_22
Serial pc(SERIAL_TX, SERIAL_RX);
DigitalOut myled(LEDStick);
int main() {
int i = 1;
pc.baud(9600);
pc.format(8,Serial::None,1);
pc.printf("Hello World !\n");
while(1) {
wait(1);
pc.printf("This program runs since %d seconds.\n", i++);
myled = !myled;
}
}