{"id":16218929,"url":"https://github.com/arminjo/lightweightservo","last_synced_at":"2026-03-11T10:02:23.142Z","repository":{"id":93079069,"uuid":"164011869","full_name":"ArminJo/LightweightServo","owner":"ArminJo","description":"Lightweight Servo library for Arduino for 2 Servos at Pin 9 and 10. Needs only timer1, no interrupts or other resources.","archived":false,"fork":false,"pushed_at":"2024-10-25T18:15:51.000Z","size":43,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T01:20:54.298Z","etag":null,"topics":["arduino-library","servo"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArminJo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-01-03T19:02:31.000Z","updated_at":"2025-08-03T05:04:35.000Z","dependencies_parsed_at":"2024-10-25T21:35:49.646Z","dependency_job_id":null,"html_url":"https://github.com/ArminJo/LightweightServo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ArminJo/LightweightServo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArminJo%2FLightweightServo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArminJo%2FLightweightServo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArminJo%2FLightweightServo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArminJo%2FLightweightServo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArminJo","download_url":"https://codeload.github.com/ArminJo/LightweightServo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArminJo%2FLightweightServo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30377837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["arduino-library","servo"],"created_at":"2024-10-10T11:51:33.421Z","updated_at":"2026-03-11T10:02:23.125Z","avatar_url":"https://github.com/ArminJo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = center\u003e\n\n# [LightweightServo](https://github.com/ArminJo/LightweightServo)\n\n[![Badge License: GPLv3](https://img.shields.io/badge/License-GPLv3-brightgreen.svg)](https://www.gnu.org/licenses/gpl-3.0)\n \u0026nbsp; \u0026nbsp;\n[![Badge Version](https://img.shields.io/github/v/release/ArminJo/LightweightServo?include_prereleases\u0026color=yellow\u0026logo=DocuSign\u0026logoColor=white)](https://github.com/ArminJo/LightweightServo/releases/latest)\n \u0026nbsp; \u0026nbsp;\n[![Badge Commits since latest](https://img.shields.io/github/commits-since/ArminJo/LightweightServo/latest?color=yellow)](https://github.com/ArminJo/LightweightServo/commits/master)\n \u0026nbsp; \u0026nbsp;\n[![Badge Build Status](https://github.com/ArminJo/LightweightServo/workflows/LibraryBuild/badge.svg)](https://github.com/ArminJo/LightweightServo/actions)\n \u0026nbsp; \u0026nbsp;\n![Badge Hit Counter](https://visitor-badge.laobi.icu/badge?page_id=ArminJo_LightweightServo)\n\u003cbr/\u003e\n\u003cbr/\u003e\n[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)\n\nPart of the Arduino library [ServoEasing](https://github.com/ArminJo/ServoEasing)\n\n[![Button Changelog](https://img.shields.io/badge/Changelog-blue?logoColor=white\u0026logo=AzureArtifacts)](https://github.com/ArminJo/LightweightServo?tab=readme-ov-file#revision-history)\n\n\u003c/div\u003e\n\n#### If you find this library useful, please give it a star.\n\n\u0026#x1F30E; [Google Translate](https://translate.google.com/translate?sl=en\u0026u=https://github.com/ArminJo/LightweightServo)\n\n## Small servo library for Arduino\nThis library is contained in the Arduino [SevoEasing](https://github.com/ArminJo/ServoEasing) library.\n *  Comparable to [Adafruit_TiCoServo library](https://github.com/adafruit/Adafruit_TiCoServo).\n *  No problems with **servo twitching**.\n *  Enables use of NeoPixels, SoftwareSerial, and DmxSimple together with servos in the same Arduino sketch.\n *  LightweightServo implementation **only for pin 9 and 10** of Arduino Uno, Nano etc..\n *  Only timer1 hardware and **no interrupts or other overhead** used.\n *  Provides **auto initialization**.\n *  Supports F_CPU of 16, 8, 4, 2, 1 MHz.\n *  **Save up to 600 bytes program size** / 40 bytes RAM including auto initialization compared to Arduino Servo library.\n *  8 bytes for each call to `write9()` or `write10()`.\n\n## Usage\nAs simple as this:\n\n```c++\n#include \"LightweightServo.hpp\"\n\nvoid setup() {\n    // no initialization required for LightweightServo :-)\n    // or use manual initialization (and compiler macro \"DISABLE_SERVO_TIMER_AUTO_INITIALIZE\") to save additional 60 bytes program memory\n    // initLightweightServoPin9();\n}\n\nvoid loop() {\n    write9(0);\n    delay(1000);\n    write9(180);\n    delay(1000);\n}\n```\n\n# [API](https://github.com/ArminJo/LightweightServo/blob/master/src/LightweightServo.h#L42)\n\n# Compile options / macros for this library\nTo customize the library to different requirements, there are some compile options / macros available.\u003cbr/\u003e\nMost macros must be defined in your program before the line `#include \u003cLightweightServo.hpp\u003e` to take effect.\u003cbr/\u003e\nModify them by enabling / disabling them, or change the values if applicable.\n\n| Name | Default value | Description |\n|-|-:|-|\n| `DISABLE_SERVO_TIMER_AUTO_INITIALIZE` | disabled | Saves up to 60 bytes flash memory. You must then use the init function `initLightweightServoPin9And10()` or `initLightweightServoPin9_10()` manually. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farminjo%2Flightweightservo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farminjo%2Flightweightservo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farminjo%2Flightweightservo/lists"}