{"id":19012653,"url":"https://github.com/naguissa/usevensegmentlib","last_synced_at":"2025-07-25T15:15:20.164Z","repository":{"id":65533774,"uuid":"122175061","full_name":"Naguissa/uSevenSegmentLib","owner":"Naguissa","description":"Arduino, ESP8266 and STM32 7-segment multiplexed displays library - uSevenSegmentLib","archived":false,"fork":false,"pushed_at":"2024-01-18T16:23:58.000Z","size":152,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T23:45:34.552Z","etag":null,"topics":["7-segment","7-segment-display","arduino","arduino-library","multiplexed","multiplexed-displays","multiplexed-outputs","naguissa","seven-segment","seven-segments-display"],"latest_commit_sha":null,"homepage":"https://www.foroelectro.net/electronica-digital-microcontroladores-f8/usevensegmentlib-libreria-arduino-para-controlar-d-t193.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Naguissa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"Naguissa","custom":"https://www.paypal.me/foroelectro"}},"created_at":"2018-02-20T08:58:49.000Z","updated_at":"2024-04-06T05:53:28.000Z","dependencies_parsed_at":"2025-04-17T05:36:46.724Z","dependency_job_id":"129564a4-cf04-4973-932b-12dc9deb6469","html_url":"https://github.com/Naguissa/uSevenSegmentLib","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Naguissa/uSevenSegmentLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naguissa%2FuSevenSegmentLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naguissa%2FuSevenSegmentLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naguissa%2FuSevenSegmentLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naguissa%2FuSevenSegmentLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Naguissa","download_url":"https://codeload.github.com/Naguissa/uSevenSegmentLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naguissa%2FuSevenSegmentLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267023278,"owners_count":24022924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["7-segment","7-segment-display","arduino","arduino-library","multiplexed","multiplexed-displays","multiplexed-outputs","naguissa","seven-segment","seven-segments-display"],"created_at":"2024-11-08T19:19:02.119Z","updated_at":"2025-07-25T15:15:20.087Z","avatar_url":"https://github.com/Naguissa.png","language":"C++","funding_links":["https://github.com/sponsors/Naguissa","https://www.paypal.me/foroelectro","https://paypal.me/foroelectro"],"categories":[],"sub_categories":[],"readme":"# Arduino, ESP8266 and STM32 7-segment multiplexed displays library - uSevenSegmentLib #\n\nMaster status:   [![Build Status](https://travis-ci.org/Naguissa/uSevenSegmentLib.svg?branch=master)](https://travis-ci.org/Naguissa/uSevenSegmentLib)\n\n\n## What is this repository for? ##\n\nReally tiny library to control multiplexed basic 7 segments displays.\n\nIt can work with only a display but it's intended to use more than one and drive them multiplexed.\n\nIf you want to use only one display you can do it without flickering, without using timers and using less code driving it directly.\n\n## Important: Dependencies ##\n\nThis library requires uTimerLib libary; it's available on IDE Library Manager and also here:\n\nhttps://github.com/Naguissa/uTimerLib\nhttps://github.com/Naguissa/uTimerLib/releases\n\n\n\n## How do I get set up? ##\n\nYou can get it from Arduino libraries directly, searching by uSevenSegmentLib.\n\nFor manual installation:\n\n * Get the ZIP from releases link: https://github.com/Naguissa/uSevenSegmentLib/releases\n * Rename to uSevenSegmentLib.zip\n * Install library on Arduino\n\n\n## Documentation and extras ##\n\nYou can find all documentation and extras in this repository: https://github.com/Naguissa/uSevenSegmentLib_doc_and_extras\n\nYou can read documentation online here: https://naguissa.github.io/uSevenSegmentLib_doc_and_extras/\n\n\n## Usage ##\n\nImportant: Remember to add resistors as needed, depending on your MCU voltage.\n\n### Constructor: ###\n\nuSevenSegmentLib::uSevenSegmentLib(unsigned char displays, int pins[8], int *muxes, unsigned int freq, bool common_anode);\n\nParameters:\n - displays: number of displays (7-segment modules)\n - pins: Array of all pins of the displays in {a, b, c, d, e, f, g, h} form. See extras folder for details.\n - muxes: Array of common anode/cathode, one by each display. Used to multiplex the displays.\n - freq: Optional. Desired refresh frequency. Default is 40 (Hz). This frequency will be multiplied by number of displays, so it's a \"all displays\" refresh rate.\n - common_anode: Optional. Set to true if you are using common_anode displays.\n\n### Set a value: ###\n\nvoid uSevenSegmentLib::set(long int number);\n\nParameters:\n - number: Number to display. It also accept negative numbers.\n\n### Start displaying: ###\n\nvoid uSevenSegmentLib::attachInterrupt();\n\nAttaches internal timer interrupts to run multiplexed displays.\n\n\n### Extra: Leading zero fill ###\n\nvoid uSevenSegmentLib::zeroFill(bool zf);\n\nParameters:\n - zf: If true, leading zeros will be displayed instead turning off that displays.\n\n\n\n## Typical usage: ##\n\n - You instantiate an object (usually a global scope object): uSevenSegmentLib sevenSegments(3, pins, muxes);\n - Then set any initial value on it on setup(): sevenSegments.set(0);\n - And attach interrupts to start working (still on setup()): sevenSegments.attachInterrupt();\n - Then, wherever you want, you can change displayed values at your will: sevenSegments.set(77);\n\n\n\n## Examples ##\n\nIncluded on example folder, available on Arduino IDE.\n\n - Three 7-segments counter example, that counts from 0 to 255.\n - One example to test connections to a 7-segment module; lights sequently from \"a\" to \"h\" segments. This example doesn't use library functions.\n\n## Extra ##\n\nLook in extras folder for a typical pinout and\n\n## Who do I talk to? ##\n\n * [Naguissa](https://github.com/Naguissa)\n * https://www.foroelectro.net/electronica-digital-microcontroladores-f8/usevensegmentlib-libreria-arduino-para-controlar-d-t193.html\n * https://www.naguissa.com\n\n\n## Contribute ##\n\nAny code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.\n\n\n * You can sponsor this project using GitHub's Sponsor button: https://github.com/Naguissa/uSevenSegmentLib\n * You can make a donation via PayPal: https://paypal.me/foroelectro\n\n\nThanks for your support.\n\n\nContributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaguissa%2Fusevensegmentlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaguissa%2Fusevensegmentlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaguissa%2Fusevensegmentlib/lists"}