LCD4884

Dependents:   15A-ClassProjectFinal_masterfull-pae-za-leng

Fork of LCD4884 by Dan Ghiciulescu

Files at this revision

API Documentation at this revision

Comitter:
pppartyn
Date:
Wed Dec 09 06:34:57 2015 +0000
Parent:
0:28f3c9274ea7
Commit message:
15A-ClassProject-pae-za-leng

Changed in this revision

LCD4884.cpp Show annotated file Show diff for this revision Revisions of this file
LCD4884.h Show annotated file Show diff for this revision Revisions of this file
diff -r 28f3c9274ea7 -r 480f22b7e9ae LCD4884.cpp
--- a/LCD4884.cpp	Sat Mar 09 21:07:35 2013 +0000
+++ b/LCD4884.cpp	Wed Dec 09 06:34:57 2015 +0000
@@ -14,12 +14,12 @@
 #include "font_6x8.h"
 #include "font_big.h"
 
-DigitalOut SpiClk(SPI_SCK);    //2- Serial Clock(Master Output)
-DigitalOut SpiMosi(SPI_MOSI);  //3- Master Output,Slave Input
-DigitalOut LcdDC(LCD_DC);      //4- Data/Command(command active low)
-DigitalOut SpiCS(SPI_CS);      //5- Chip Select,Slave Transmit Enable(active low,Master Output)
-DigitalOut LcdRst(LCD_RST);    //6- One Reset button
-PwmOut     LcdBl(LCD_BL);      //7- LCD backlight
+DigitalOut SpiClk(D13);    //2- Serial Clock(Master Output)
+DigitalOut SpiMosi(D3);  //3- Master Output,Slave Input
+DigitalOut LcdDC(D4);      //4- Data/Command(command active low)
+DigitalOut SpiCS(D5);      //5- Chip Select,Slave Transmit Enable(active low,Master Output)
+DigitalOut LcdRst(D6);    //6- One Reset button
+PwmOut     LcdBl(D7);      //7- LCD backlight
 
 LCD4884::LCD4884()
 {};
diff -r 28f3c9274ea7 -r 480f22b7e9ae LCD4884.h
--- a/LCD4884.h	Sat Mar 09 21:07:35 2013 +0000
+++ b/LCD4884.h	Wed Dec 09 06:34:57 2015 +0000
@@ -16,12 +16,12 @@
 #include "mbed.h"
 
 // SPI Interface --- (on arduino Arduino Digital Pin 2,3,4,5,6)
-#define SPI_SCK  PTD4   //Serial Clock(Master Output)
-#define SPI_MOSI PTA12  //Master Output,Slave Input
-#define LCD_DC   PTA4   //Data/Command(command active low)
-#define SPI_CS   PTA5   //Chip Select,Slave Transmit Enable(active low,Master Output)
-#define LCD_RST  PTC8   //One Reset button
-#define LCD_BL   PTC9   //PWM Backlit control (Arduino DIO Pin 7)
+//#define SPI_SCK  D13   //Serial Clock(Master Output)
+//#define SPI_MOSI D3  //Master Output,Slave Input
+//#define LCD_DC   D4   //Data/Command(command active low)
+//#define SPI_CS   D5   //Chip Select,Slave Transmit Enable(active low,Master Output)
+//#define LCD_RST  D6   //One Reset button
+//#define LCD_BL   D7   //PWM Backlit control (Arduino DIO Pin 7)
 
 
 //display mode -- normal / highlight