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.
- Open the Arduino IDE
- Go to
Sketch > Include Library > Manage Libraries...
- Search for
TinySeg
- Click on the library and click
Install
- Download the library from the Releases page.
- Open the Arduino IDE
- Go to
Sketch > Include Library > Add .ZIP Library...
- Select the downloaded file
- Download the library from the Releases page.
- Unzip the file
- Go to
Documents/Arduino/libraries
- Copy contents of the zip file to
Documents/Arduino/libraries
#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();
}
Created and maintained by Segilmez06.