.
Fork of app-board-LCD by
main.cpp@4:09bb909fba68, 2018-09-08 (annotated)
- Committer:
- Hinz
- Date:
- Sat Sep 08 21:43:59 2018 +0000
- Revision:
- 4:09bb909fba68
- Parent:
- 3:2db94ee076ee
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dreschpe | 0:f6a57b843f79 | 1 | #include "mbed.h" |
chris | 3:2db94ee076ee | 2 | #include "C12832.h" |
dreschpe | 0:f6a57b843f79 | 3 | |
chris | 3:2db94ee076ee | 4 | |
Hinz | 4:09bb909fba68 | 5 | C12832 lcd(D11, D13, D12, D7, D10); |
Hinz | 4:09bb909fba68 | 6 | Ethernet eth; |
dreschpe | 1:1c6a9eaf55b5 | 7 | |
dreschpe | 0:f6a57b843f79 | 8 | int main() |
dreschpe | 0:f6a57b843f79 | 9 | { |
Hinz | 4:09bb909fba68 | 10 | char myMac[6]; |
chris | 2:a87e255a8f3a | 11 | lcd.cls(); |
chris | 2:a87e255a8f3a | 12 | lcd.locate(0,3); |
chris | 2:a87e255a8f3a | 13 | lcd.printf("mbed application board!"); |
Hinz | 4:09bb909fba68 | 14 | eth.address(myMac); |
Hinz | 4:09bb909fba68 | 15 | lcd.locate(0,15); |
Hinz | 4:09bb909fba68 | 16 | lcd.printf("MAC: %02X:%02X:%02X:%02X:%02X:%02X", |
Hinz | 4:09bb909fba68 | 17 | myMac[0],myMac[1],myMac[2],myMac[3],myMac[4],myMac[5]); |
dreschpe | 0:f6a57b843f79 | 18 | } |