Skip to content

A library that drives a 4 row Liquid Crystal Display with 3x2, 3x3 and 4x4 font sizes

License

Notifications You must be signed in to change notification settings

gcassarino/BigFont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A library that drives a 4 row Liquid Crystal Display with 3x2, 3x3 and 4x4 font sizes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages