Skip to content

Document I2C devices that answer reads, and the sensor parts built on them - #2

Merged
burhankhanzada merged 2 commits into
mainfrom
feat/i2c-reads
Sep 30, 2026
Merged

burhankhanzada merged 2 commits into
mainfrom
feat/i2c-reads

Conversation

@burhankhanzada

Copy link
Copy Markdown
Member

Docs only, in doc/PDL.md. The code this describes lives in PinBench/pinbench (pinbench_parts/pinbench_sim).

What changes

  • context.i2c (e834b31) gains serve() and setRegisters(). A part publishes a register bank, and the bus answers the sketch's reads from it: pointer first, auto-incrementing, the way I²C sensors work. The Limits section now says what's still missing (SPI, UART, 1-Wire).
  • The shipped-parts table (59951b8) now lists the seven new .pdl parts: TMP36, LM35, a capacitive soil probe, a 9 V battery, and four I²C sensors (BH1750, MPU-6050, DS1307, AHT20). The built-in LOGIC table gains their four logics.

Notes for the reviewer

PinBench/pinbench points its packages/pinbench_pdl submodule at 59951b8, so merging with a merge commit keeps that pointer on main. pinbench_parts depends on this repo's main by ref, but only for code, which this PR doesn't touch.

🤖 Generated with Claude Code

burhankhanzada and others added 2 commits September 30, 2026 02:12
context.i2c gains serve() and setRegisters(): a part publishes a
register bank and the bus answers the sketch's reads from it, pointer
first and auto-incrementing, the way I2C sensors work. The limits
section now says what is still missing (SPI, UART, 1-Wire).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Seven parts shipped in pinbench_parts: TMP36, LM35, a capacitive soil
probe, a 9 V battery, and four I2C sensors (BH1750, MPU-6050, DS1307,
AHT20) whose LOGIC serves registers the sketch reads.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@burhankhanzada
burhankhanzada merged commit 714d715 into main Sep 30, 2026
2 of 3 checks passed
@burhankhanzada
burhankhanzada deleted the feat/i2c-reads branch September 30, 2026 13:05
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant