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 line-trace2
Dependents: line-trace3 line-trace3 line-trace2
Diff: function.h
- Revision:
- 1:a8fad3c66162
- Parent:
- 0:764148148257
diff -r 764148148257 -r a8fad3c66162 function.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/function.h Fri Dec 07 09:34:18 2018 +0000
@@ -0,0 +1,47 @@
+#include "mbed.h"
+
+///////////////////////////////////////
+int count1 = 0;
+int count2 = 0;
+int distance1 = 0;
+int distance2 = 0;
+int distance = 0;
+
+void flip1() {
+ count1++;
+ distance1++;
+}
+
+void flip2() {
+ count2++;
+ distance2++;
+}
+
+
+
+/*
+class Sample{
+ private:
+ count;
+ public:
+ Sample();
+ void counter();
+ void counter2(int &num);
+};
+
+Sample::Sample()
+{
+ count=0;
+}
+
+void Sample::counter()
+{
+ count++;
+}
+
+void Sample::counter2(int& num)
+{
+ num+=1;
+}
+
+*/
\ No newline at end of file