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

Revise the Raspberry Pi Pico sample implementation #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dgoffredo
Copy link

I'm using the SCD41 with a Raspberry Pi Pico W, and used this repository's sample implementation as a starting point.

The code in sample-implementations/RaspberryPi_Pico/ has several shortcomings that I aim to correct in this pull request:

  • Rename CMakeLists.txt to have the proper casing.
  • Refer to source and header files relative to the example's directory.
  • Fix syntax errors in main.c.
  • Fix bugs in main.c.
  • Add logging.
  • Add documentation.

This is my first time contributing to this project, so I'm happy to make any changes requested.

- Don't read from an uninitiailized boolean variable.
- Pull up the SCL and SDA pins used for I2C.
- Use sleep_us for higher precision in the HAL.
- Add error logging.
- Increase precision of reported measurement data.
- Remove lengthy sensor self-test.
- Remove unused variables and functions.
- Address any -Wall -Wextra warnings.
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.

1 participant