-
Notifications
You must be signed in to change notification settings - Fork 104
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
Added example for the DS18B20 #397
Added example for the DS18B20 #397
Conversation
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.
LGTM!
To fix the build issue, I think you need to add a rule in .build-test-rules.yml to only build the example if the chip has RMT:
components/ds18b20:
disable:
- if: SOC_RMT_SUPPORTED != 1
reason: Onewire component depends on RMT peripheral
and please clean up commit history before merging.
1ef8bde
to
9cb86de
Compare
Can you kindly take a look, @tore-espressif? Many 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.
LGTM!
Added YML file and license Update components/ds18b20/examples/ds18b20-read/CMakeLists.txt Co-authored-by: Ivan Grokhotkov <[email protected]> Update components/ds18b20/examples/ds18b20-read/README.md Co-authored-by: Ivan Grokhotkov <[email protected]> Update components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c Co-authored-by: Ivan Grokhotkov <[email protected]> Update components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c Co-authored-by: Ivan Grokhotkov <[email protected]> Update components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c Co-authored-by: Ivan Grokhotkov <[email protected]> README file updated Code review/renaming and static vars fixed Added RMT skip as a build test rule
9cb86de
to
a3405b1
Compare
ESP-BSP Pull Request checklist
Change description
This PR adds a simple example of how to read the DS18B20. This example was used during a presentation to show how to use the components and BSP.