.

Dependencies:   C12832 mbed-dev

Fork of app-board-LCD by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
Hinz
Date:
Sat Sep 08 21:43:59 2018 +0000
Parent:
3:2db94ee076ee
Commit message:
.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-dev.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
diff -r 2db94ee076ee -r 09bb909fba68 main.cpp
--- a/main.cpp	Wed Feb 05 15:32:38 2014 +0000
+++ b/main.cpp	Sat Sep 08 21:43:59 2018 +0000
@@ -2,19 +2,17 @@
 #include "C12832.h"
 
 
-C12832 lcd(p5, p7, p6, p8, p11);
+C12832 lcd(D11, D13, D12, D7, D10);
+Ethernet eth;
 
 int main()
 {
-    int j=0;
+    char myMac[6];
     lcd.cls();
     lcd.locate(0,3);
     lcd.printf("mbed application board!");
-
-    while(true) {   // this is the third thread
-        lcd.locate(0,15);
-        lcd.printf("Counting : %d",j);
-        j++;
-        wait(1.0);
-    }
+    eth.address(myMac);
+    lcd.locate(0,15);
+    lcd.printf("MAC: %02X:%02X:%02X:%02X:%02X:%02X",
+        myMac[0],myMac[1],myMac[2],myMac[3],myMac[4],myMac[5]);    
 }
diff -r 2db94ee076ee -r 09bb909fba68 mbed-dev.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-dev.lib	Sat Sep 08 21:43:59 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed-dev/#0387e8f68319
diff -r 2db94ee076ee -r 09bb909fba68 mbed.bld
--- a/mbed.bld	Wed Feb 05 15:32:38 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc
\ No newline at end of file