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:
42:596c207519de
Parent:
41:6c046786be6c
--- a/Bitmap.cpp	Wed Mar 08 16:13:08 2017 +0000
+++ b/Bitmap.cpp	Tue Mar 21 10:43:19 2017 +0000
@@ -87,10 +87,10 @@
             // Column index on the screen for rendering this pixel
             int screen_col = x0 + bitmap_col;
 
+            // Find the required value of the pixel at the given location within
+            // the bitmap data and then write it to the LCD screen
             int pixel = get_pixel(bitmap_row, bitmap_col);
-
-            if(pixel) lcd.setPixel(screen_col, screen_row);
-            else      lcd.clearPixel(screen_col, screen_row);
+            lcd.setPixel(screen_col, screen_row, pixel);
         }
     }
 }
\ No newline at end of file