Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
/ TinySeg Public archive

Bit-sized HP 7 segment display controller library

License

Notifications You must be signed in to change notification settings

Sarp-Archive/TinySeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinySeg

GitHub Workflow Status (with branch) GitHub Workflow Status (with branch) GitHub release (latest by date) GitHub repo size GitHub all releases arduino-library-badge

A simple library for bit-sized HP 7 segment display which was staying in my component box. I found this at 3AM and had urge to use this cute thing and I wrote this library to make controlling easier. Display has matrix connections so it can pretty much run without any libraries. But this library allows you to print string and int values easily.

I tested this with RP2040 but lib doesn't contains any platform-spesific code. It's compatible with all AVR and ESP boards. If you want to use it with other boards, just make your own pin connections.

Also I found an article about using this display with Arduino after a quick search: Hewlett-Packard 5082-7415 LED Display from 1976

You can open new issues and pull request to contribute. New example sketches will be appreciated.

Installation

With Arduino Library Manager

  1. Open the Arduino IDE
  2. Go to Sketch > Include Library > Manage Libraries...
  3. Search for TinySeg
  4. Click on the library and click Install

With Zip file

  1. Download the library from the Releases page.
  2. Open the Arduino IDE
  3. Go to Sketch > Include Library > Add .ZIP Library...
  4. Select the downloaded file

Manual Installation

  1. Download the library from the Releases page.
  2. Unzip the file
  3. Go to Documents/Arduino/libraries
  4. Copy contents of the zip file to Documents/Arduino/libraries

Usage

#include <Segment.h>

// Define the pins
int charPins[] = { 15, 16, 17, 18, 14 }; // GND
int segPins[] = { 22, 21, 20, 19, 13, 12, 11, 10 }; // VCC

// Init the display
Segment s(charPins, segPins);

void setup() {
    s.Write("HELLO");
}

void loop() {
    s.ApplyValues();
}

Credits

Created and maintained by Segilmez06.

About

Bit-sized HP 7 segment display controller library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages