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.
Diff: main.cpp
- Revision:
- 0:2a502be30ec8
- Child:
- 1:6017f9971cc8
diff -r 000000000000 -r 2a502be30ec8 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Oct 03 10:07:16 2017 +0000
@@ -0,0 +1,41 @@
+#if !FEATURE_LWIP
+ #error [NOT_SUPPORTED] LWIP not supported for this target
+#endif
+
+#include "mbed.h"
+
+InterruptIn BLM_CHANNEL_A(PG_5);
+InterruptIn BLM_CHANNEL_B(PG_4);
+int A_count = 0 ;
+int B_count = 0;
+
+
+void IncB()
+{
+ B_count ++ ;
+ printf("%d", B_count);
+ }
+void IncA()
+{
+ A_count ++ ;
+ printf("%d",A_count);
+ }
+
+
+char Count[10] = "Hello";
+
+int main()
+{
+ printf("Man this actually works");
+ printf("This is my attempt to conduct a TCP Send \n");
+
+ while (true) {
+
+ BLM_CHANNEL_A.rise(&IncA);
+ BLM_CHANNEL_B.rise(&IncB);
+
+ printf("Count so far for Channel A:%d \n Count so far for Channel B : %d ",A_count ,B_count);
+ wait(2);
+ }
+}
+