Skip to content
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

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

pedrominatel
Copy link
Member

@pedrominatel pedrominatel commented Sep 23, 2024

ESP-BSP Pull Request checklist

Note: For new BSPs create a PR with this link.

  • Version of modified component bumped
  • CI passing

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.

@CLAassistant
Copy link

CLAassistant commented Sep 23, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@igrr igrr left a 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.

@pedrominatel
Copy link
Member Author

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.

Can you kindly take a look, @tore-espressif? Many thanks!

Copy link
Collaborator

@tore-espressif tore-espressif left a 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
@tore-espressif tore-espressif merged commit 1677ca4 into espressif:master Sep 27, 2024
16 checks passed
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.

4 participants