menu LCD4884 locker

Dependencies:   mbed mbed

Fork of LCD4884 by Dan Ghiciulescu

Revision:
1:452282f5895f
Parent:
0:28f3c9274ea7
--- a/LCD4884.h	Sat Mar 09 21:07:35 2013 +0000
+++ b/LCD4884.h	Sun Dec 10 06:11:35 2017 +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  D2   //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
@@ -41,7 +41,7 @@
     public:
     LCD4884();
     void LCD_init(void);
-    void backlight(float dat);
+    void backlight(int dat);
     void LCD_write_byte(unsigned char dat, unsigned char dat_type);
     void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,unsigned char Pix_x,unsigned char Pix_y);
     void LCD_write_string(unsigned char X,unsigned char Y,char *s, char mode);