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 HEPTA_CDH_lite HEPTA_COM_lite LPS25HB_I2C HEPTA_SENSOR_lite HEPTA_EPS_lite
Revision 0:da0f6aca15b8, committed 2021-08-10
- Comitter:
- heptasat2021
- Date:
- Tue Aug 10 01:51:51 2021 +0000
- Child:
- 1:ddac5ec89167
- Commit message:
- Lab1-01_pc_communication_character_lite
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Aug 10 01:51:51 2021 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+Serial pc(USBTX,USBRX,9600);
+int main()
+{
+ char a,b;
+ a = 'A';
+ pc.putc(a);
+ for(int i=0;i<10;i++) {
+ pc.printf("\r\n i=%d -- press any key -->",i);
+ b = pc.getc();
+ pc.putc(b);
+ wait_ms(500);
+ }
+ pc.printf("\r\n End of program\r\n");
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 10 01:51:51 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file