docs: add I2C environmental sensor HAT tutorial#655
Closed
MolhamHamwi wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Raspberry Pi HAT tutorial documenting an I2C environmental sensor design (BME280 + pull-ups + optional OLED/external headers) and updates the Bun lockfile metadata accordingly.
Changes:
- Added a new MDX tutorial under
docs/tutorials/pi-hats/for an I2C environmental sensor HAT. - Included wiring guidance, BOM/layout notes, Raspberry Pi I2C bring-up steps, and a Python readout example.
- Updated
bun.lockwith aconfigVersionfield.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/tutorials/pi-hats/i2c-environmental-sensor-hat.mdx | New end-to-end tutorial for building an I2C BME280-based Raspberry Pi HAT (schematic/PCB guidance + setup + sample code). |
| bun.lock | Adds Bun lockfile configVersion metadata. |
Comments suppressed due to low confidence (1)
docs/tutorials/pi-hats/i2c-environmental-sensor-hat.mdx:130
- Same as above: this Step 1 snippet still uses
footprint="soic8"for the BME280. If you update the sensor footprint/package choice, make sure this example stays consistent with the overview circuit and BOM.
<chip
name="U1"
footprint="soic8"
manufacturerPartNumber="BME280"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <RaspberryPiHatBoard name="HAT1"> | ||
| <chip | ||
| name="U1" | ||
| footprint="soic8" |
Comment on lines
+213
to
+219
| ## Python Example | ||
|
|
||
| Install the CircuitPython BME280 driver: | ||
|
|
||
| ```bash | ||
| python3 -m pip install adafruit-circuitpython-bme280 | ||
| ``` |
Comment on lines
+148
to
+154
| ## Step 2: Wire the I2C Bus | ||
|
|
||
| Connect Raspberry Pi `GPIO_2` to BME280 `SDI` for SDA, and `GPIO_3` to `SCK` for SCL. Add one pull-up resistor from each line to 3.3V. | ||
|
|
||
| ```tsx | ||
| <trace from=".HAT1_chip .GPIO_2" to=".U1 .SDI" /> | ||
| <trace from=".HAT1_chip .GPIO_3" to=".U1 .SCK" /> |
Author
|
Closing this duplicate to keep review focused on #656, which has the updated tutorial revision and passing checks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #602
/claim #602
Summary
docs/tutorials/pi-hats/Test Plan
bun run typecheckbun run build