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: BufferedSerial USBDevice mbed
Fork of USB2UART by
Revision 1:efa9f62a12c4, committed 2013-12-04
- Comitter:
- yihui
- Date:
- Wed Dec 04 01:28:54 2013 +0000
- Parent:
- 0:8c4eea221dcf
- Child:
- 2:427b69ad737c
- Commit message:
- settings changed callback function is merged into official USB lib, switch to use official USB lib
Changed in this revision
| USBDevice.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice.lib Wed Oct 30 02:01:50 2013 +0000 +++ b/USBDevice.lib Wed Dec 04 01:28:54 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/yihui/code/USBDevice/#01040319e35c +http://mbed.org/users/mbed_official/code/USBDevice/#849c0c0f2769
--- a/main.cpp Wed Oct 30 02:01:50 2013 +0000
+++ b/main.cpp Wed Dec 04 01:28:54 2013 +0000
@@ -7,6 +7,7 @@
Serial uart(USBTX, USBRX);
USBSerial pc;
+DigitalOut led(LED2);
// Called by ISR
void settingsChanged(int baud, int bits, int parity, int stop)
@@ -23,6 +24,7 @@
int main()
{
+ led = 1;
pc.attach(settingsChanged);
while (1) {
