{"id":16942918,"url":"https://github.com/jd/libparportled","last_synced_at":"2026-05-19T02:43:47.191Z","repository":{"id":19816578,"uuid":"23077180","full_name":"jd/libparportled","owner":"jd","description":"Library to control a LED system via parallel port","archived":false,"fork":false,"pushed_at":"2016-04-07T14:38:23.000Z","size":445,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T04:11:38.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-18T15:52:38.000Z","updated_at":"2024-05-09T14:05:07.000Z","dependencies_parsed_at":"2022-08-21T14:40:53.285Z","dependency_job_id":null,"html_url":"https://github.com/jd/libparportled","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd%2Flibparportled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd%2Flibparportled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd%2Flibparportled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd%2Flibparportled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd","download_url":"https://codeload.github.com/jd/libparportled/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244753044,"owners_count":20504421,"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","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":[],"created_at":"2024-10-13T21:13:15.971Z","updated_at":"2026-05-19T02:43:42.158Z","avatar_url":"https://github.com/jd.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libparportled\n\nThis library is intended to control a LED device plugged on parallel port. A\nsuch device is composed of a number of LED (default is 8, maybe more is\npossible, I don't know) plugged on parallel port.\n\n![libparportled](leds.jpg)\n\n# Usage\n\n* MAXLED is defined as the number of LED available. (--with-maxled= in\n  configure option)\n\n* BASEPORT is the IO address of parallel port (--with-port= in configure\n  option)\n\n# API\n\nint led_setperm();\nInitialise the parallel port, MUST be root !\nReturn -1 on error.\n\nvoid led_on_all();\nTurn all LED on.\n\nvoid led_off_all();\nTurn all LED off.\n\nint led_on(int led);\nTurn LED number \"led\" on.\n\nint led_off(int led);\nTurn LED number \"led\" off.\n\nint led_set_on(int *state);\nState must be a int vector. If value is \u003e 0, LED will be turned on.\n\nint led_set_off(int *state);\nDo the inverse of led_set().\n\nint led_blink_on(int led, int us_time);\nStart blinking LED number \"led\". us_time is the time in microsecond of\nthe state changement.\nThis function starts a new thread.\nPlease note that all LED are blinking with in a same interval, the first\nus_time is used.\nIf you do:\nled_blink_on(1, 10000);\nled_blink_on(2, 2000);\n10000 will be used for ALL blinking LED.\n\nint led_blink_off(int led);\nStop blinking LED number led.\nIf no more led are blinking, thread exits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd%2Flibparportled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd%2Flibparportled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd%2Flibparportled/lists"}