{"id":21463128,"url":"https://github.com/gitmasternikanjam/i2c_eepromparam_arduino","last_synced_at":"2025-03-17T05:14:57.988Z","repository":{"id":263310842,"uuid":"888188458","full_name":"GitMasterNikanjam/I2C_EEpromParam_Arduino","owner":"GitMasterNikanjam","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-17T18:27:28.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T14:42:00.327Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitMasterNikanjam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-14T00:57:25.000Z","updated_at":"2024-11-17T18:28:11.000Z","dependencies_parsed_at":"2024-11-18T08:15:57.212Z","dependency_job_id":null,"html_url":"https://github.com/GitMasterNikanjam/I2C_EEpromParam_Arduino","commit_stats":null,"previous_names":["gitmasternikanjam/eepromparam_arduino"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitMasterNikanjam%2FI2C_EEpromParam_Arduino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitMasterNikanjam%2FI2C_EEpromParam_Arduino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitMasterNikanjam%2FI2C_EEpromParam_Arduino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitMasterNikanjam%2FI2C_EEpromParam_Arduino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitMasterNikanjam","download_url":"https://codeload.github.com/GitMasterNikanjam/I2C_EEpromParam_Arduino/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976480,"owners_count":20377691,"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-23T07:18:56.938Z","updated_at":"2025-03-17T05:14:57.970Z","avatar_url":"https://github.com/GitMasterNikanjam.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"/*\n\nSchematic:\n\n        +---U---+\n    A0  | 1   8 |  VCC = +5V\n    A1  | 2   7 |   WP = write protect pin\n    A2  | 3   6 |  SCL = I2C clock\n   GND  | 4   5 |  SDA = I2C data\n        +-------+\n\ndefault address = 0x50 .. 0x57 depending on three address lines\n\nConstructor:\n\nI2C_eeprom(uint8_t deviceAddress, TwoWire *wire = \u0026Wire) constructor, optional Wire interface.\nI2C_eeprom(uint8_t deviceAddress, uint32_t deviceSize, TwoWire *wire = \u0026Wire) constructor, with optional Wire interface.\nbool begin(uint8_t writeProtectPin = -1) initializes the I2C bus with the default pins. Furthermore it checks if the deviceAddress is available on the I2C bus. Returns true if deviceAddress is found on the bus, false otherwise. Optionally one can set the WP writeProtect pin. (see section below). If the WP pin is defined the default will be to not allow writing.\nbool isConnected() test to see if deviceAddress is found on the bus.\nuint8_t getAddress() returns device address set in the constructor.\n\nWrite functions:\n\nint writeByte(uint16_t memoryAddress, uint8_t value) write a single byte to the specified memory address. Returns I2C status, 0 = OK.\nint writeBlock(uint16_t memoryAddress, uint8_t * buffer, uint16_t length) write a buffer starting at the specified memory address. Returns I2C status, 0 = OK.\nint setBlock(uint16_t memoryAddress, uint8_t value, uint16_t length) writes the same byte to length places starting at the specified memory address. Returns I2C status, 0 = OK.\n\nUpdate functions:\n\nint updateByte(uint16_t memoryAddress, uint8_t value) write a single byte, but only if changed. Returns 0 if value was same or write succeeded.\nuint16_t updateBlock(uint16_t memoryAddress, uint8_t * buffer, uint16_t length) write a buffer starting at the specified memory address, but only if changed. Returns bytes written.\n\nRead functions:\n\nuint8_t readByte(uint16_t memoryAddress) read a single byte from a given address.\nuint16_t readBlock(uint16_t memoryAddress, uint8_t * buffer, uint16_t length) read length bytes into buffer starting at specified memory address. Returns the number of bytes read, which should be length.\n*/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitmasternikanjam%2Fi2c_eepromparam_arduino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitmasternikanjam%2Fi2c_eepromparam_arduino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitmasternikanjam%2Fi2c_eepromparam_arduino/lists"}