{"id":15782150,"url":"https://github.com/tig/i2chelper","last_synced_at":"2025-03-31T16:36:22.391Z","repository":{"id":144957851,"uuid":"388568155","full_name":"tig/i2cHelper","owner":"tig","description":"Helps test Sparkfun Qwiic / i2c device connections on Arduino","archived":false,"fork":false,"pushed_at":"2021-08-25T08:04:05.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T21:06:30.544Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tig.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":"2021-07-22T18:59:33.000Z","updated_at":"2021-08-25T08:04:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8d44c99-ee86-44b1-baee-0f5ee359d2ab","html_url":"https://github.com/tig/i2cHelper","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.2857142857142857,"last_synced_commit":"3fccbdad5a2db54d4b16de351d0d1c7e0a3e83af"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tig%2Fi2cHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tig%2Fi2cHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tig%2Fi2cHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tig%2Fi2cHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tig","download_url":"https://codeload.github.com/tig/i2cHelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498842,"owners_count":20787401,"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-04T19:03:55.369Z","updated_at":"2025-03-31T16:36:22.370Z","avatar_url":"https://github.com/tig.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# I2C / Qwiic bus scanner and tester\n\nTests (scans) the I2C (and Sparkfun Qwiic) bus and connected devices on Arduino. Particularly usedful when uisng an I2C mux such as the Sparkfun Qwiic Mux and i2c extenders such as the Sparkfun Differential I2C Bus Extender.\n\n\n\n* Currently built for the P1AM, but should work with any Arduino microcontroller \nwith an I2C bus.\n* Currenly coded for my specific setup, but easy to modify. Just change the `declare_devices` and related `enum` and add code required to init, set, and query your specific devices.\n* The `i2c` class makes it easy to configure I2C devices within your real solution.\n* Includes wrapper classes for several Sparkfun Qwiic-based devices:\n    * SparkFun Qwiic Relay \n    * SparkFun Qwiic Button - modeled as a contact sensor\n    * SparkFun VL53L1X Lidar Distance Sensor \n* Logs results to `Serial`\n* Supports Telnet connections with a set of commands. Connect with Putty or whatever and type `?` or `help` to see available commands.\n\n## Usage\n\n1. Load the project in VS Code/ PlatformIO\n2. Build \u0026 Upload\n3. Monitor - in the Serial Monitor type `?` and press enter:\n\n```\n\u003e?\nget     Gets state info - [fwd|rwd|motor ([speed|direction])]\ninit    Inits and tests - [i2c|mux|fwd|rwd|motor]\nlog     Sets logging - [serial*|shell] [verbose*|info|silent]\nreboot  Reboots the microcontroller\nset     Sets a property - [relay1|relay2|motor|resurrect] ([on|off] | [fwd|rev|stop|off])\nshell   Configures shell - [telnet*|raw]\nstatus  Prints status - [system|door|actuator|slider [fwd|rwd]]\n\u003e init i2c\n\u003e\u003e\u003e\u003e\u003e Command: init i2c  \u003c\u003c\u003c\u003c\u003c\nI2C devices found: Actuator Relay1 (0x0018), Actuator Relay2 (0x0019), Resurrection Relay (0x001A), Motor Controller (0x0058), Forward End-range Sensor (0x006D), Closed Sensor (0x006E), Opened Sensor (0x006F), Mux (0x0070), Forward Distance Sensor (Mux Port 0x0004), \n  ERROR: Rearward Distance Sensor (0x0005) was not found \n  ERROR: Rearward End-range Sensor (0x006C) was not found\n\u003e get fwd\n\u003e\u003e\u003e\u003e\u003e Command: get fwd  \u003c\u003c\u003c\u003c\u003c\nForward Distance Sensor = 42 mm\n42\n\u003e get motor direction\n\u003e\u003e\u003e\u003e\u003e Command: get motor direction  \u003c\u003c\u003c\u003c\u003c\nStopped, speed = 0\n\nStopped\n\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftig%2Fi2chelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftig%2Fi2chelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftig%2Fi2chelper/lists"}