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
Revision 0:f42e0f2f3375, committed 2021-12-14
- Comitter:
- th30
- Date:
- Tue Dec 14 10:21:33 2021 +0000
- Commit message:
- ppp; ;
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 Dec 14 10:21:33 2021 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+Serial pc(USBTX,USBRX);
+int i , j;
+int main(){
+ while(1){
+ for(i=0;i<10;i+=1){
+ pc.printf("%d\n\r",i);
+ wait(0.5);
+ }
+ for(j=10;j>0;j-=1){
+ pc.printf("%d\n\r",j);
+ wait(0.5);
+ }
+ }
+}
+
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 14 10:21:33 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file