NHD SPI LCD Library Code Rev 0.0

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Me
Date:
Sat Oct 24 23:40:10 2015 +0000
Commit message:
NHD-040D3Z-NSW-BBW-V3 LCD Library
;
; Rev 0.0

Changed in this revision

SPI-LCD.cpp Show annotated file Show diff for this revision Revisions of this file
SPI-LCD.h Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SPI-LCD.cpp	Sat Oct 24 23:40:10 2015 +0000
@@ -0,0 +1,17 @@
+#include "SPI-LCD.h"
+
+#include "mbed.h"
+
+using namespace mbed;
+
+
+SPILCD::SPILCD(PinName mosi, PinName miso, PinName sclk, PinName ssel) : _mosi(mosi), _miso(miso), _sclk(sclk) _ssel(ssel) {
+    //_mosi=1;
+    //_miso=1;
+    //_sclk=1;
+    
+}
+
+SPILCD::init() {
+    //_ssel=0; //Select the device
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SPI-LCD.h	Sat Oct 24 23:40:10 2015 +0000
@@ -0,0 +1,28 @@
+#ifndef MBED_TEXTLCD_H
+#define MBED_TEXTLCD_H
+
+#include "DigitalOut.h"
+#include "SPI.h"
+#include "mbed.h"
+
+namespace mbed {
+
+class SPILCD {
+
+public:
+
+    SPILCD(PinName mosi, PinName miso, PinName sclk, PinName ssel);
+        
+protected:
+   
+    void Init();
+    void ClrScreen();
+    void Cursor(int);
+    SPI _mosi, _miso, _sclk;
+    DigitalOut _ssel;
+
+};
+
+}
+
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Oct 24 23:40:10 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file