64bitint/LcdGraph

Arduino/ESP32 LCD bar graph library

★ 0Forks 0C++GitHub ↗Compare

README

LcdGraph

Arduino/ESP32 Bar graph library uses custom charactors to draw bar graphs on LCD displays.

ESP 32 with LCD Display showing a bar graph

How to use

Setup

Copy LcdGraph.cpp and LcdGraph.h into your project.

To use non a I2C LCD remove #define USE_I2C from the LcdGraph.h header file.

Include the header file

#include "LcdGraph.h"

Init

Create an instance of LcdGraph

Call init() to set number of columns and rows as well as the start column and row.

Call createChars() to set the LCD display's custom charactors

Output

Call addValue() to add a value to the graph

Call drawGraph() to update the LCD display with the updated graph values

Example

Try it out in the Wokwi online ESP32 simulator

Contributors

64bitint

Issues