.
Fork of app-board-LCD by
Revision 4:09bb909fba68, committed 2018-09-08
- Comitter:
- Hinz
- Date:
- Sat Sep 08 21:43:59 2018 +0000
- Parent:
- 3:2db94ee076ee
- Commit message:
- .
Changed in this revision
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