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:14e92501b8ad
diff -r 000000000000 -r 14e92501b8ad main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu May 07 11:44:19 2015 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+Serial bt(p9,vp10);
+
+int main(){
+
+ Bertl tom;
+
+ while(true){
+ int a = 5;
+ bt.printf("Hello World %d \n",a);
+ wait(1);
+ }
+
+ while(1){
+
+ uint8_t val = tom.GetLineValues(); // Definition und Zuweisung des Wertes an val
+
+ tom.NibbleLeds(val); // Anzeigen des Werts der Variable val an den 4 gelben Leds
+
+ if (val == 6 || val == 3 || val == 2 || val == 1 || val == 4 || val == 12 || val == 8){
+ tom.Move(20);
+ }
+
+ if (val == 0){
+ tom.TurnLeftStep(5);
+ }
+ }
+}
\ No newline at end of file