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.
Revision 0:7a4e84f6e472, committed 2015-11-16
- Comitter:
- david22
- Date:
- Mon Nov 16 14:36:37 2015 +0000
- Commit message:
- First LED test
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl.lib Mon Nov 16 14:36:37 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/users/fpucher/code/Bertl/#308802267a62
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Nov 16 14:36:37 2015 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+
+int main()
+{
+ bertl.NibbleLeds(0x0F);
+ wait(1);
+ bertl.NibbleLeds(0x00);
+
+ while(1)
+ {
+ for(int a=0;a<8;a++)
+ {
+ if(a==0)
+ bertl.TurnLedOn(LED_FR1);
+ if(a==1)
+ bertl.TurnLedOn(LED_FR2);
+ if(a==2)
+ bertl.TurnLedOn(LED_BR2);
+ if(a==3)
+ bertl.TurnLedOn(LED_BR1);
+ if(a==4)
+ bertl.TurnLedOn(LED_BL2);
+ if(a==5)
+ bertl.TurnLedOn(LED_BL1);
+ if(a==6)
+ bertl.TurnLedOn(LED_FL2);
+ if(a==7)
+ bertl.TurnLedOn(LED_FL1);
+
+ wait_ms(500);
+ bertl.TurnLedOff(LED_ALL);
+
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 16 14:36:37 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file