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:19347b0e7f7c
diff -r 000000000000 -r 19347b0e7f7c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Apr 23 12:19:08 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+class IfBertl : public ur_Bertl
+{
+ public:
+ bool FrontIsClear_OR_BTN_FLL_IsPressed();
+};
+
+bool IfBertl :: FrontIsClear_OR_BTN_FLL_IsPressed()
+{
+ if( FrontIsClear() || IsButtonPressed(BTN_FLL))
+ {
+ return true;
+ }
+ return false;
+}
+
+int main()
+{
+ IfBertl karel;
+
+ karel.FrontIsClear_OR_BTN_FLL_IsPressed();
+}
\ No newline at end of file