light text library for 5110 nokia lcd * easy to modify * proportional font, bold / inverse modes * easy to add / change fonts * fixed rows for fast update
Library finished! :-) If you use 5110 and need fast menus - try this library. No overhead - small and robust, optimized for this display type only, fast update. Nice looking font. Power management. Displays from 5110 and 3110 are cheap as dirt :-)
Diff: medvdv5110.cpp
- Revision:
- 4:82917c164f2b
- Parent:
- 2:65df20ffef51
- Child:
- 5:c37e5454bdb2
diff -r 03c7cb24222d -r 82917c164f2b medvdv5110.cpp --- a/medvdv5110.cpp Fri Dec 07 21:53:31 2012 +0000 +++ b/medvdv5110.cpp Mon Apr 08 07:18:52 2013 +0000 @@ -1,7 +1,6 @@ // // 5110 LCD Driver -// (c) 2012 @medvdv -// Alexander Medvedev +// (c) 2012 @medvdv - Alexander Medvedev // #include "mbed.h" @@ -250,7 +249,8 @@ for(int i=0; i<count; i++) Write(byte); } -// Draw one font character +// Draw one proportional font character +// Jump to next line if empty space is not enought void lcd5110::Character(char chr) { if( chr < font.first_code ) return; @@ -280,7 +280,7 @@ } // Calculate width of concrete character -// accounts bold setting +// takes into account bold setting int lcd5110::CharacterWidth(char chr) { if( chr < font.first_code ) return 0;