-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[nrf52] minimum examples #5493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nrf52] minimum examples #5493
Conversation
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughAdded a Troubleshooting section to Changes
Sequence Diagram(s)(omitted — changes are documentation-only and do not affect control flow) Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
content/components/nrf52.md (1)
106-106: Minor text clarity improvement.The phrase "Try minimum LED blinking sketch for the board:" is slightly awkward. Consider rephrasing to: "Try this minimal LED blinking sketch for your board:" for better readability.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
content/components/nrf52.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
- Do not generate or add any sequence diagrams
Files:
content/components/nrf52.md
🔇 Additional comments (2)
content/components/nrf52.md (2)
98-156: Comprehensive troubleshooting and examples structure looks good.The addition of a Troubleshooting section with bootloader upgrade guidance and "How to start" examples with concrete YAML configurations is a solid improvement to the documentation. The YAML syntax is correct, GPIO pin references are valid per the GPIO Pin Numbering section, and the interval/output configuration patterns are idiomatic to ESPHome. Once the board naming clarification is addressed, this section should be highly useful for users getting started with nrf52 boards.
106-131: ---Clarify board naming inconsistency in the supermini example.
The header references "supermini-nrf52840" but the configuration specifies
board: adafruit_itsybitsy_nrf52840. This mismatch will confuse users about which board identifier to use. Either update the header to indicate this is an alternative board using the adafruit_itsybitsy_nrf52840 configuration, or clarify the relationship between the supermini board and the adafruit configuration being used.
|
Great idea. It will simplify the setup for beginners. |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
content/components/nrf52.md (1)
109-113: Clarify board compatibility for supermini-nrf52840 example.The example section is titled
[supermini-nrf52840]but usesboard: adafruit_itsybitsy_nrf52840. While this compatibility selection may work, it could confuse beginners who expect to see asupermini_nrf52840board option or don't understand why the example title differs from the board configuration.Consider adding a brief explanatory note (e.g., "Note: The supermini-nrf52840 is compatible with the itsybitsy board configuration") to clarify this compatibility relationship.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
content/components/nrf52.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
- Do not generate or add any sequence diagrams
Files:
content/components/nrf52.md
🧠 Learnings (1)
📓 Common learnings
Learnt from: jesserockz
Repo: esphome/esphome-docs PR: 4865
File: .github/workflows/needs-docs.yml:0-0
Timestamp: 2025-05-01T03:29:47.922Z
Learning: In the esphome-docs repository, the "current" label is automatically added by a bot to pull requests, making it a reliable indicator for the target branch.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build
🔇 Additional comments (1)
content/components/nrf52.md (1)
98-166: Troubleshooting content is well-structured and practical.The new troubleshooting section provides:
- A clear, actionable link for the common flashing instability issue
- Two minimal, reproducible LED-blink examples covering different boards
- A concise solution for boot failures
The examples follow consistent structure and use the correct pin naming conventions (P0.xx format), making them appropriate as getting-started templates.

Description:
Add troubleshooting for nrf52 so people can reference it easier.
Related issue (if applicable): fixes
Pull request in esphome with YAML changes (if applicable):
Checklist:
I am merging into
nextbecause this is new documentation that has a matching pull-request in esphome as linked above.or
I am merging into
currentbecause this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.Link added in
/components/index.rstwhen creating new documents for new components or cookbook.New Component Images
If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.
To generate a component image:
Comment on this pull request with the following command, replacing
COMPONENT_NAMEwith your component name in UPPER_CASE format with underscores (e.g.,BME280,SHT3X,DALLAS_TEMP):The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.
Extract the SVG file and place it in the
images/folder of this repository.Use the image in your component's index table entry in
/components/index.rst.Example: For a component called "DHT22 Temperature Sensor", use: