Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.93 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.93 KB

BigFont Library for Arduino

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

Getting Started

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.

Authors

License

This project is licensed under the GPL License - see the LICENSE file for details

Acknowledgments/Credits

  • 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