LV1ZAD4 Adam Stanic, Alen Sjenicaku

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
2016US_AdamStanic
Date:
Mon Mar 07 23:38:48 2016 +0000
Commit message:
LV1ZAD4 Adam Stanic, Alen Sjenicaku

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r e93123f7aefe main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 07 23:38:48 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#define dp23 P0_0
+ 
+BusOut bus(dp23,dp24,dp25,dp26,dp27,dp5,dp6,dp28);
+DigitalOut enable(dp14);
+
+
+int main()
+{
+    int brojac=1;
+    enable=0;
+
+    while(1)
+    {
+        for(brojac=1; brojac<=256 ;brojac=brojac*2)
+        if(brojac == 256) 
+        {
+            brojac=1;
+        }
+        bus=brojac;
+        wait(1);
+    }
+    
+}
\ No newline at end of file
diff -r 000000000000 -r e93123f7aefe mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 07 23:38:48 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb
\ No newline at end of file