Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).

Dependents:   LV7_LCDtest LV7_Grupa5_Tim003_Zadatak1 lv7_Grupa5_Tim008_zad1 LV7_PAI_Grupa5_tim10_Zadatak1 ... more

This library is designed to make it easy to interface an mbed with a Nokia 5110 LCD display.

These can be found at Sparkfun (https://www.sparkfun.com/products/10168) and Adafruit (http://www.adafruit.com/product/338).

The library uses the SPI peripheral on the mbed which means it is much faster sending data to the display than other libraries available on other platforms that use software SPI.

The library can print strings as well as controlling individual pixels, meaning that both text and primitive graphics can be displayed.

Revision:
46:6de3ebf5b195
Parent:
45:97e54ea40dac
Child:
48:af12980ac515
--- a/N5110.h	Mon Nov 06 11:48:22 2017 +0000
+++ b/N5110.h	Mon Nov 27 15:21:36 2017 +0000
@@ -82,7 +82,7 @@
 
         // draw a line across the display at y = 40 pixels (origin top-left)
         for (int i = 0; i < WIDTH; i++) {
-            lcd.setPixel(i,40);
+            lcd.setPixel(i,40,true);
         }
         // need to refresh display after setting pixels or writing strings
         lcd.refresh();
@@ -90,7 +90,7 @@
 
         // can check status of pixel using getPixel(x,y);
         lcd.clear();  // clear buffer
-        lcd.setPixel(2,2);  // set random pixel in buffer
+        lcd.setPixel(2,2,true);  // set random pixel in buffer
         lcd.refresh();
         wait(1.0);
 
@@ -101,6 +101,8 @@
         }
 
         // this one shouldn't be set
+        lcd.setPixel(3,3,false);  // clear random pixel in buffer
+        lcd.refresh();
         pixel_to_test = lcd.getPixel(3,3);
 
         if ( pixel_to_test == 0 ) {
@@ -414,8 +416,7 @@
                     int y0,
                     int nrows,
                     int ncols,
-                    int *sprite)
-    __attribute__((deprecated("Use the Bitmap::render() function instead")));
+                    int *sprite);
 
 
 private: