{"id":15472062,"url":"https://github.com/pganssle/ad525x","last_synced_at":"2025-06-15T20:16:52.397Z","repository":{"id":24249386,"uuid":"27642729","full_name":"pganssle/AD525x","owner":"pganssle","description":"Library for I2C communication with AD5253 and AD5254 digital potentiometers using an Arduino.","archived":false,"fork":false,"pushed_at":"2017-01-18T22:27:15.000Z","size":750,"stargazers_count":0,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T17:34:43.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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pganssle.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}},"created_at":"2014-12-06T17:35:14.000Z","updated_at":"2019-10-07T18:13:06.000Z","dependencies_parsed_at":"2022-08-22T05:40:08.205Z","dependency_job_id":null,"html_url":"https://github.com/pganssle/AD525x","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/pganssle%2FAD525x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pganssle%2FAD525x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pganssle%2FAD525x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pganssle%2FAD525x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pganssle","download_url":"https://codeload.github.com/pganssle/AD525x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207746,"owners_count":20416109,"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-02T02:25:16.538Z","updated_at":"2025-03-18T11:14:15.879Z","avatar_url":"https://github.com/pganssle.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AD525x - Arduino library for I\u003csup\u003e2\u003c/sup\u003eC communication with AD5253 and AD5254\r\nThis is a library for communication with AD5253 and AD5254 quad 64-/256-position I\u003csup\u003e2\u003c/sup\u003eC Nonvolatile Memory Digital Potentiometers. The features implemented are based on [the datasheet provided by Analog Devices](http://www.analog.com/static/imported-files/data_sheets/AD5253_5254.pdf). \r\n\r\nTo use these, instantiate either an AD5253 or an AD5254 object (the main difference is in the error checking) and call `obj.initialize(AD_addr)` to initialize communication with the device. The AD525x series potentiometers have a 5 bits of their 7-bit I2C address hard-coded as `0x2C` (`0d44`), and the two lowest bits can be programmed by pulling the `AD0` (pin 4) and `AD1` (pin 16) lines either high or low. The `initialize` method of each AD525x object is instantiated with the 2-bit `AD1 AD0` address of the device - do not specify the hard-coded portion of the address, as that is already taken into account.\r\n\r\nDue exception handling with `try` and `catch` are too costly to be used on microcontrollers, in the event of an error in a member function, the private variable `err_code` (which can be queried using `AD525x::get_err_code()`) is set to one of the error codes defined in `AD525x_Errors.h`. A small companion library, `AD525x_ErrorStrings.h` is provided for interpreting the error codes into human readable strings. It is separated out from the main library to minimize unnecessary resource costs.\r\n\r\n\r\n### License\r\nThis code is licensed under the MIT license. If you would like to use it under a different license or you would like a waiver of the requirements of the MIT license, contact me.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpganssle%2Fad525x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpganssle%2Fad525x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpganssle%2Fad525x/lists"}