https://github.com/hamsadev/sevenseg
A library for setting up 7 segments as a multiplexer for all types of microcontrollers.
https://github.com/hamsadev/sevenseg
7seg 7segment avr seven-segment seven-segments-display stm32
Last synced: 8 months ago
JSON representation
A library for setting up 7 segments as a multiplexer for all types of microcontrollers.
- Host: GitHub
- URL: https://github.com/hamsadev/sevenseg
- Owner: hamsadev
- License: gpl-3.0
- Created: 2023-03-18T17:45:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T14:38:52.000Z (over 2 years ago)
- Last Synced: 2025-03-29T08:23:32.769Z (9 months ago)
- Topics: 7seg, 7segment, avr, seven-segment, seven-segments-display, stm32
- Language: C
- Homepage:
- Size: 2.53 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sevenSeg
A library for setting up 7 segments as a multiplexer for all types of microcontrollers. This library is under development and currently works only on AVR microcontrollers.
- [x] putInt
- [x] putString
- [x] putFloat
- [x] Common Anode and Common Cathode support
- [x] multi instance support
- [x] ~~auto refresh support~~
# Demo

# Tests
- [x] AVR (atmega16)
- [ ] stm32F1
- [ ] stm32F3
- [ ] stm32F4
- [ ] stm32F7
## How to use
- First, add the library to your project
- include the seven_seg.h file
- include "seven_seg_port.h" file
According to the number of seven segments and their number of digits, sevenSegRefreshIsr function should be called continuously.
If the time interval is too short, the interrupt rate may exceed the task time and you will have a virtual loop and the performance will not be correct.
And if the time interval is too long, you may encounter seven segment flashing.
This function is responsible for keeping seven segments alive.
TODO: update readme