{"id":20962585,"url":"https://github.com/lathoub/arduino-shiftinout","last_synced_at":"2026-04-29T06:38:00.970Z","repository":{"id":145444331,"uuid":"309123579","full_name":"lathoub/Arduino-ShiftInOut","owner":"lathoub","description":"Arduino ShiftIn ShiftOut","archived":false,"fork":false,"pushed_at":"2025-02-02T09:04:26.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T10:19:20.475Z","etag":null,"topics":["74hc165","74hc595","arduino","shift-register","shiftin","shiftout"],"latest_commit_sha":null,"homepage":"","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/lathoub.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":"2020-11-01T15:16:11.000Z","updated_at":"2025-02-02T09:04:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea12eb34-4d14-4efc-84cd-190a46ae2036","html_url":"https://github.com/lathoub/Arduino-ShiftInOut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lathoub%2FArduino-ShiftInOut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lathoub%2FArduino-ShiftInOut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lathoub%2FArduino-ShiftInOut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lathoub%2FArduino-ShiftInOut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lathoub","download_url":"https://codeload.github.com/lathoub/Arduino-ShiftInOut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358318,"owners_count":20277997,"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":["74hc165","74hc595","arduino","shift-register","shiftin","shiftout"],"created_at":"2024-11-19T02:35:34.616Z","updated_at":"2026-04-29T06:37:55.922Z","avatar_url":"https://github.com/lathoub.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arduino-ShiftInOut\n\nThe Arduino ShiftInOut is a Serial to Parallel Shifting-Out and Parallel to Serial Shifting-In library.\n\nThe hardware bindings for the shifting are provided as C++ template arguments.\nCurrently supported:\n- [74HC165](https://github.com/lathoub/Arduino-ShiftInOut/blob/main/src/hardware/IC74HC165.h)\n- [74HC595](https://github.com/lathoub/Arduino-ShiftInOut/blob/main/src/hardware/IC74HC595.h)\n\nThe DigitalRead and DigitalWrite functions can be overwritten if faster methods are available (also through C++ temmplate arguments). The [Out-of-the-box implementation](https://github.com/lathoub/Arduino-ShiftInOut/blob/main/src/NativeDigitalIO.h) maps to the default implementation of DigitalRead and Write.\n\n## Usage\n\n### Shift-In\n\n```cpp\n#include \u003cShiftIn.h\u003e\n#include \u003chardware/IC74HC165.h\u003e\n\n#define LATCHPIN A12\n#define DATAPIN A14\n#define CLOCKPIN A13\n#define CHIPCOUNT 4\n\nCREATE_NATIVE_74HC165(si, LATCHPIN, DATAPIN, CLOCKPIN, CHIPCOUNT);\n\nvoid setup() {\n  ...\n}\n\nvoid loop() {\n  ...\n  auto result = si.read();\n  ...\n```\n  \n### Shift-Out\n\n```cpp\n#include \u003cShiftOut.h\u003e\n#include \u003chardware/IC74HC595.h\u003e\n\n#define LATCHPIN A11\n#define DATAPIN A15\n#define CLOCKPIN A13\n#define CHIPCOUNT 4\n\nCREATE_NATIVE_74HC595(so, LATCHPIN, DATAPIN, CLOCKPIN, CHIPCOUNT);\n\nvoid setup() {\n  ...\n}\n\nvoid loop() {\n  ..\n  so.setAll(true).commit();\n  .. \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flathoub%2Farduino-shiftinout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flathoub%2Farduino-shiftinout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flathoub%2Farduino-shiftinout/lists"}