Simple library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).
Dependents: radarDistanceSensorTool
Fork of N5110 by
Diff: N5110.h
- Revision:
- 7:505f281a04fa
- Parent:
- 6:adb79338d40f
--- a/N5110.h Mon Jan 27 18:41:45 2014 +0000 +++ b/N5110.h Mon May 11 16:34:51 2015 +0000 @@ -193,18 +193,19 @@ * TODO: Randomise the seed - maybe using the noise on the AnalogIn pins. */ void randomiseBuffer(); + void initSPI(); + void clearRAM(); private: - void initSPI(); - void turnOn(); + void reset(); - void clearRAM(); void clearBuffer(); void sendCommand(unsigned char command); void sendData(unsigned char data); public: unsigned char buffer[84][6]; // screen buffer - the 6 is for the banks - each one is 8 bits; + void turnOn(); private: // private variables SPI* spi;