LCD4884_MENU

Fork of LCD4884 by Nutthaya Hankla

Files at this revision

API Documentation at this revision

Comitter:
BIN11
Date:
Fri Dec 08 04:43:53 2017 +0000
Parent:
1:480f22b7e9ae
Commit message:
LCD4884_menu

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
--- a/LCD4884.cpp	Wed Dec 09 06:34:57 2015 +0000
+++ b/LCD4884.cpp	Fri Dec 08 04:43:53 2017 +0000
@@ -9,12 +9,12 @@
 * Update DFRobot source to work on FRDM KL25Z
 *
 */
-
+#include "mbed.h"
 #include "LCD4884.h"
 #include "font_6x8.h"
 #include "font_big.h"
 
-DigitalOut SpiClk(D13);    //2- Serial Clock(Master Output)
+DigitalOut SpiClk(D2);    //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)
@@ -25,7 +25,7 @@
 {};
 
 /******************************************************************/
-void LCD4884::backlight(float dat)
+void LCD4884::backlight(int dat)
 {
     LcdBl = dat;
 }
@@ -271,5 +271,4 @@
     {
         LCD_write_byte(0, 1);
     }
-}
-  
+}
\ No newline at end of file
--- a/LCD4884.h	Wed Dec 09 06:34:57 2015 +0000
+++ b/LCD4884.h	Fri Dec 08 04:43:53 2017 +0000
@@ -16,7 +16,7 @@
 #include "mbed.h"
 
 // SPI Interface --- (on arduino Arduino Digital Pin 2,3,4,5,6)
-//#define SPI_SCK  D13   //Serial Clock(Master Output)
+//#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)
@@ -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);