FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
lcd5110.h File Reference

API to handle Nokia 5110 display through SPI interface (actually not really SPI as only MOSI, not MISO, pin is used for data transfer). More...

#include <string.h>
#include "../bits.h"
#include "../flash.h"
#include "../gpio.h"
#include "../spi.h"
#include "../time.h"
#include "display.h"
#include "font.h"
Include dependency graph for lcd5110.h:

Go to the source code of this file.

Classes

class  devices::display::LCD5110< SCE, DC, RST >
 SPI device driver for Nokia 5110 display chip. More...
 

Namespaces

namespace  devices
 Defines all API for all external devices supported by FastArduino.
 
namespace  devices::display
 Defines generic API for all display devices.
 

Enumerations

enum class  devices::display::TemperatureCoefficient : uint8_t {
  devices::display::TC0_1mV_K = 0x04 ,
  devices::display::TC1_9mV_K = 0x05 ,
  devices::display::TC2_17mV_K = 0x06 ,
  devices::display::TC3_24mV_K = 0x07
}
 Possible temperature coeeficient that can be set on Nokia5110 display. More...
 

Detailed Description

API to handle Nokia 5110 display through SPI interface (actually not really SPI as only MOSI, not MISO, pin is used for data transfer).

Note that PCD8544 chip used in Nokia 5110 is powered at 3.3V and does not bear 5V voltage from pins of most Arduino. Hence, all signals from Arduino output pins must be converted from 5V to 3.3V, for this you will need a level converter:

  • this may be CD74HC4050 chip (up to 6 pins with level conversion)
  • or you may use one of those common MOSFET-based converters breakouts
  • or you may build your own

Example wiring for Arduino UNO (with CD74HC4050):

  • pin 11 (PB3,MOSI) –I>– DN
  • pin 13 (PB5, SCK) –I>– SCLK
  • pin 10 (PB2, SS) –I>– SCE
  • pin 9 (PB1) –I>– D/C
  • pin 8 (PB0) –I>– RST
  • 3.3V –[=330=]– LED
  • 3.3V ---— 3.3V
  • GND ---— GND

Definition in file lcd5110.h.