![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Opis
Dependencies: N5110 SWSPI mbed
Fork of LV7_LCDtest by
main.cpp@1:a174ab8a7339, 2016-05-20 (annotated)
- Committer:
- esokic
- Date:
- Fri May 20 23:25:54 2016 +0000
- Revision:
- 1:a174ab8a7339
- Parent:
- 0:01c7393abf13
Program za komunikaciju FRDM i Nokia displeja
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
esokic | 0:01c7393abf13 | 1 | #include "mbed.h" |
esokic | 0:01c7393abf13 | 2 | #include "N5110.h" |
esokic | 0:01c7393abf13 | 3 | |
esokic | 1:a174ab8a7339 | 4 | |
esokic | 0:01c7393abf13 | 5 | //Deklaracija LCD objekta |
esokic | 0:01c7393abf13 | 6 | //N5110 lcd(VCC,SCE,RST,D/C,MOSI,SCLK,LED) |
esokic | 1:a174ab8a7339 | 7 | N5110 lcd(PTB8,PTA13,PTA12,PTD5,PTD2,PTC5,PTE20); |
esokic | 0:01c7393abf13 | 8 | |
esokic | 0:01c7393abf13 | 9 | int main() |
esokic | 0:01c7393abf13 | 10 | { |
esokic | 0:01c7393abf13 | 11 | // inicijalizacija displeja |
esokic | 0:01c7393abf13 | 12 | lcd.init(); |
esokic | 0:01c7393abf13 | 13 | |
esokic | 0:01c7393abf13 | 14 | // prikaz stringa |
esokic | 0:01c7393abf13 | 15 | lcd.printString("Mi volimo PAI!",0,0); |
esokic | 0:01c7393abf13 | 16 | |
esokic | 1:a174ab8a7339 | 17 | wait(2); |
esokic | 1:a174ab8a7339 | 18 | |
esokic | 1:a174ab8a7339 | 19 | lcd.clear(); |
esokic | 1:a174ab8a7339 | 20 | lcd.printString("Mi ipak vise",0,0); |
esokic | 1:a174ab8a7339 | 21 | lcd.printString("volimo US!",0,1); |
esokic | 1:a174ab8a7339 | 22 | while(1) { |
esokic | 1:a174ab8a7339 | 23 | |
esokic | 1:a174ab8a7339 | 24 | } |
esokic | 0:01c7393abf13 | 25 | } |