Skip to content

Skyler84/i2c fixup#8

Open
Skyler84 wants to merge 3 commits intoMLAB-project:masterfrom
Skyler84:skyler84/i2c-fixup
Open

Skyler84/i2c fixup#8
Skyler84 wants to merge 3 commits intoMLAB-project:masterfrom
Skyler84:skyler84/i2c-fixup

Conversation

@Skyler84
Copy link
Copy Markdown
Contributor

Fixed an issue with copying the i2c_msg buffer - using the list(iter) function is more generic than the ctypes buffer copying and works with compatible objects better.

Added the ability for arbitrary-lengthed i2c writes by breaking up into separate HID packets.

Changed buffer copy from ctype buffer to use standard list([iterator]) style copy.
I2C writes >60B are broken into individual HID packets.
@kaklik kaklik requested a review from roman-dvorak April 26, 2026 20:18
@kaklik
Copy link
Copy Markdown
Member

kaklik commented Apr 26, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 81ae5b198f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ft260/__init__.py Outdated
Removed tail recursion and replaced with while loop.
Loop iterates over 60 bytes at a time for an i2c write transaction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants