Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: co657_lcdplay co657_nrf52_beacons door_lock co657_IoT
Fork of C12832 by
Diff: C12832_lcd.cpp
- Revision:
- 11:1d68011a277c
- Parent:
- 3:468cdccff7af
- Child:
- 12:4affce236743
diff -r 468cdccff7af -r 1d68011a277c C12832_lcd.cpp
--- a/C12832_lcd.cpp Thu Oct 25 17:34:34 2012 +0000
+++ b/C12832_lcd.cpp Sat Nov 09 01:00:59 2013 +0000
@@ -26,8 +26,9 @@
#define BPP 1 // Bits per pixel
-C12832_LCD::C12832_LCD(const char* name)
- : _spi(p5,NC,p7),_reset(p6),_A0(p8),_CS(p11),GraphicsDisplay(name)
+
+C12832_LCD::C12832_LCD(PinName mosi, PinName sck, PinName reset, PinName a0, PinName ncs, const char* name)
+ : _spi(mosi,NC,sck),_reset(reset),_A0(a0),_CS(ncs),GraphicsDisplay(name)
{
orientation = 1;
draw_mode = NORMAL;
@@ -132,7 +133,7 @@
_spi.format(8,3); // 8 bit spi mode 3
_spi.frequency(20000000); // 19,2 Mhz SPI clock
- DigitalOut _reset(p6);
+// DigitalOut _reset(p6);
_A0 = 0;
_CS = 1;
_reset = 0; // display reset
