Zhang Xin yu
/
ZhangXinyu201090208
zhangxinyu01text
Diff: N5110/N5110.h
- Revision:
- 12:3952ba0683c7
- Parent:
- 5:3c9407e2fe55
--- a/N5110/N5110.h Tue Apr 17 08:00:08 2018 +0000 +++ b/N5110/N5110.h Mon May 06 06:09:02 2019 +0000 @@ -40,17 +40,17 @@ }; /** N5110 Class -@brief Library for interfacing with Nokia 5110 LCD display (https://www.sparkfun.com/products/10168) using the hardware SPI on the mbed. +@brief just the same as the N5110 in the calss before @brief The display is powered from a GPIO pin meaning it can be controlled via software. The LED backlight is also software-controllable (via PWM pin). @brief Can print characters and strings to the display using the included 5x7 font. @brief The library also implements a screen buffer so that individual pixels on the display (84 x 48) can be set, cleared and read. @brief The library can print primitive shapes (lines, circles, rectangles) -@brief Acknowledgements to Chris Yan's Nokia_5110 Library. + @brief Revision 1.3 -@author Craig A. Evans -@date 7th February 2017 +@author Zhang Xinyu +@date MAY 2019 @code @@ -177,6 +177,8 @@ @endcode */ + + class N5110 { private: @@ -189,7 +191,7 @@ DigitalOut *_dc; // variables - unsigned char buffer[84][6]; // screen buffer - the 6 is for the banks - each one is 8 bits; + unsigned char buffer[84][6]; public: /** Create a N5110 object connected to the specified pins