SegLCDLib
Loading...
Searching...
No Matches

Arduino library for segment LCD displays. Provides abstract interface, controller drivers (PCF85176/HT1621/HT1622/VK0192), and implementations for common displays.

Quick Start

SegLCD_HT1621_4SegDegree lcd(5, 6, 7); // CLK, DATA, CS pins
void setup() {
lcd.init();
}
void loop() {
lcd.setCursor(0, 0);
lcd.print(25); // Display: 25
delay(1000);
}
HT1621 driver for 4-digit LCD with degree symbol and colon.
4-digit 7-segment LCD with degree symbol and colon (HT1621).
Definition SegLCD_HT1621_4SegDegree.h:19

Documentation

Supported Controllers

Controller Protocol Pins Max Digits
PCF85176 I2C 2 13
PCF8576 I2C 2 13
HT1621 3-wire 3 6
HT1622 3-wire 3 10+
VK0192 3-wire 3 5

Featured Displays

See Supported LCDs for full catalog.

Display Controller Features
Temperature/Humidity PCF85176 6-digit, icons
6-Digit Signal/Battery PCF85176 Signal bars, battery, progress
2x4-Digit Sig/Bat/Power PCF85176 2 rows, signal, battery, power
4-Digit with Degree HT1621 Colon, degree symbol
6-Digit with Battery HT1621 Battery indicator
LCM0844 HT1621 8 digits, labels, battery/load
LCM88128 HT1621 8 digits, labels, battery/load/PV
LCM59011 HT1621 4 digits, colon, wifi, battery, symbols
10-Digit 16-Segment HT1622 Enhanced segments
5-Digit Signal/Battery VK0192 Advanced controller

Installation

Arduino Library Manager

  1. SketchInclude LibraryManage Libraries
  2. Search SegLCDLib
  3. Click Install

Manual

  1. Download: https://github.com/petrkr/SegLCDLib
  2. Copy to Arduino/libraries/SegLCDLib
  3. Restart Arduino IDE

Examples

17 complete examples in examples/ directory:

  • PCF85176: 7 examples (RawLCD, TempHum, 2Row4DigSigBatPwr, etc.)
  • HT1621: 6 examples (4DigDeg, 6DigBat, LCM0844, LCM59011, LCM88128, RawLCD)
  • HT1622: 2 examples (10Digit16Segment, RawLCD)
  • VK0192: 1 example (5DigSigBatProg)
  • PCF8576: 1 example (4Seg6SegMaintSegBatUnits)

Features

  • Abstract Interface: Consistent LCD API 1.0 (Arduino LCD standard)
  • Multiple Protocols: I2C (PCF85176) and 3-wire serial (HT1621/1622/VK0192)
  • RAM Efficient: Buffered writes, minimal memory overhead
  • Print Compatibility: Inherits from Print class for print()/println()
  • Flexible: Easy to add support for new displays

Architecture

Application Code
SegLCDLib Base (LCD API 1.0)
Controller Driver (PCF85176, HT1621, etc.)
LCD Implementation (display-specific)
Hardware (I2C / 3-wire serial)

See Architecture for details.

Support