{"id":18664924,"url":"https://github.com/mazkdevf/aerolle","last_synced_at":"2025-08-24T06:38:14.217Z","repository":{"id":174253692,"uuid":"651984232","full_name":"mazkdevf/aerolle","owner":"mazkdevf","description":"Joku koodin pätkä aerolle :D","archived":false,"fork":false,"pushed_at":"2023-06-10T17:50:45.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T05:15:07.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazkdevf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-06-10T17:49:07.000Z","updated_at":"2023-06-13T02:04:18.000Z","dependencies_parsed_at":"2023-07-09T18:30:15.304Z","dependency_job_id":null,"html_url":"https://github.com/mazkdevf/aerolle","commit_stats":null,"previous_names":["mazkdevf/aerolle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mazkdevf/aerolle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2Faerolle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2Faerolle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2Faerolle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2Faerolle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazkdevf","download_url":"https://codeload.github.com/mazkdevf/aerolle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2Faerolle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265483895,"owners_count":23774292,"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-11-07T08:25:31.463Z","updated_at":"2025-07-16T05:15:04.436Z","avatar_url":"https://github.com/mazkdevf.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aerolle\nJoku koodin pätkä aerolle :D\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cchrono\u003e\n#include \u003cctime\u003e\n#include \u003cthread\u003e\n\nclass painikkeenpainaja {\nprivate:\n    int MikroservomoottoriPinni;\n    int Aikavali;\n    int PainikkeenTila;\npublic:\n    painikkeenpainaja(int pin, int delay) : MikroservomoottoriPinni(pin), Aikavali(delay), PainikkeenTila(0) {}\n\n    void aloita_looppi() {\n        while (true) {\n            std::time_t now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());\n            char buffer[26];\n            ctime_s(buffer, sizeof(buffer), \u0026now);\n            std::this_thread::sleep_for(std::chrono::milliseconds(2000));\n            std::cout \u003c\u003c \"[\" \u003c\u003c buffer \u003c\u003c \"] Käännytään oikealle\\n\\n\" \u003c\u003c std::endl;\n            PainikkeenTila = 1;\n            std::this_thread::sleep_for(std::chrono::milliseconds(2000));\n            std::time_t now2 = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());\n            ctime_s(buffer, sizeof(buffer), \u0026now2);\n            std::cout \u003c\u003c \"[\" \u003c\u003c buffer \u003c\u003c \"] Käännytään vasemmalle\\n\\n\" \u003c\u003c std::endl;\n            PainikkeenTila = 0;\n\n            std::this_thread::sleep_for(std::chrono::milliseconds(Aikavali));\n        }\n    }\n};\n\nint main() {\n    int MikroservomoottoriPinni = 9;\n    int Aikavali = 1 * 60 * 1000;\n\n    painikkeenpainaja painikkeenpainaja_(MikroservomoottoriPinni, Aikavali);\n    painikkeenpainaja_.aloita_looppi();\n\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazkdevf%2Faerolle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazkdevf%2Faerolle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazkdevf%2Faerolle/lists"}