arduino / arduino/ArduinoCore-sam

Trouble with static buffer sizes within the I2C libray.

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Board: Arduino Due Library: Wire Type: Improvement
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Description

_From @DieterBurandt on January 17, 2017 17:16_

(Arduino 1.6.18.1)

- I2C communication:

The I2C buffer has a fixed size of 32byte in the Arduino library. If you like to use an EEPROM with a page size of e.g. 128 byte, then you must patch the buffer size in the Arduino library.

Please implement a simple method, that the user can set the size of the buffer from within the project (AVR, SAM, and SAMD(?)).

(SAM: "Wire.h" => "#define BUFFER_LENGTH 32")

_Copied from original issue: arduino/Arduino#5871_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Wire.h and locating the fixed BUFFER_LENGTH definition in the SAM core. Compare how the I2C buffer is defined in the AVR and SAMD cores, then determine how a project-level buffer size could be configured consistently. Done means users can set the buffer size without patching the Arduino library.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.