tr
Diff: N5110.h
- Revision:
- 48:af12980ac515
- Parent:
- 46:6de3ebf5b195
- Child:
- 50:e73cd097fdcb
--- a/N5110.h Wed Dec 20 13:51:38 2017 +0000 +++ b/N5110.h Wed Feb 21 09:35:25 2018 +0000 @@ -3,6 +3,18 @@ #include "mbed.h" +// number of pixels on display +#define WIDTH 84 +#define HEIGHT 48 +#define BANKS 6 + +/// Fill types for 2D shapes +enum FillType { + FILL_TRANSPARENT, ///< Transparent with outline + FILL_BLACK, ///< Filled black + FILL_WHITE, ///< Filled white (no outline) +}; + /** 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 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). @@ -164,19 +176,6 @@ @endcode */ - -// number of pixels on display -#define WIDTH 84 -#define HEIGHT 48 -#define BANKS 6 - -/// Fill types for 2D shapes -enum FillType { - FILL_TRANSPARENT, ///< Transparent with outline - FILL_BLACK, ///< Filled black - FILL_WHITE, ///< Filled white (no outline) -}; - class N5110 { private: