Simple Arduino library for interfacing with seven segment displays. Written for use with 5641AH, but it might work with other displays even without modification.
/** @file sketch.ino */
#include "7seg.h"
int segment_pins[] = {1, 2, 3, 4, 5, 6, 7, 8};
SegmentDisplay display{
CATHODE,
segment_pins,
10, 11, 12, 13
};
void setup() {
display.write_num(1729);
}
void loop() {
display.refresh();
}
For more information, see 7seg.h
This software is licensed under the MIT License (MIT). For full license text,
see the LICENSE.txt
file.