This library allows an Arduino board (a controller using the Arduino core libraries) to display big digits/numbers on 4 row monochrome text displays.
This library is derived from https://github.com/wa1hco/BigFont but unlike the previous this library implements multiple font sizes: 3x2, 3x3 and 4x4 fonts
This library was tested using a LCD display drived by the Hitachi HD44780 LCD controller. The controller was drived using the New LiquidCrystal LCD Library by Francisco Malpartida.
Example of use:
BigFont bigfont(3); // declaration, 2 for 3colx2rows, 3 for 3colx3rows or 4 4colx4rows digits
bigfont.setFontSize(size); // can be used to change display font size 2,3 or 4 at runtime
// somewhere in the code...
if(_bigFontSize == 2){
bigfont.printbigchar(lcd, 0, 0, 0);
bigfont.printbigchar(lcd, this->_dt.hour, 3, 0);
} else if(_bigFontSize == 3){
bigfont.printbigchar(lcd, 0, 0, 0);
bigfont.printbigchar(lcd, this->_dt.hour, 3, 0);
} else {
bigfont.printbigchar(lcd, 0, 0, 0);
bigfont.printbigchar(lcd, this->_dt.hour, 4, 0);
}
The BigFont library was tested on ESP8266 and ATMega328 boards using the Arduino core.
- Tom Igoe et al... - Initial work
- wa1hco
- Gianluca Cassarino - this version for LCD displays
This project is licensed under the GPL License - see the LICENSE file for details
- this Library is derived from wa1hco BigFont
- BigFont.cpp - Big Font library for Arduino - Version 0.1 Derived from Stepper.cpp Original library (0.1) by Tom Igoe et al...
- Francisco Malpartida for writing the excellent library New LiquidCrystal