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.
main.cpp
- Committer:
- ChrisABailey
- Date:
- 2020-01-07
- Revision:
- 3:a221a67f0ab5
- Parent:
- 2:1193fb25edf8
File content as of revision 3:a221a67f0ab5:
#define MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE 9600
#define MBED_CONF_PLATFORM_CTHUNK_COUNT_MAX 8
#define MBED_CONF_TARGET_STDIO_UART_RX PB_4
#include "mbed.h"
#include <ctype.h>
//Serial pc(USBTX, STDIO_UART_RX,9600);
Serial rs232( PA_2,PB_4,9600);
DigitalOut led(LED1);
int main() {
led=1;
int i='a';
while(1) {
if (i++>'z')
{
i='a';
}
int c = rs232.getc();
led=!led;
wait(0.2);
rs232.putc(toupper(c));
}
}