Git Product home page Git Product logo

bigfont's Introduction

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

bigfont's People

Contributors

gcassarino avatar per1234 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.