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
drivers: sensor: mcp9600: Added driver and sample for mcp9600 #31082
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.
Please also squash the commits and update the description to cover the content of the PR.
Added driver and sample for mcp9600 microchip I2C thermocouple amplifier. Tested on frdm_kw41z and nrf52850dk. Fixed multiple comments on the code. Tested fixes Signed-off-by: Steven Riedl <steve@serconsultingllc.com>
editing error on readme no newline at end Signed-off-by: Steven Riedl <steve@serconsultingllc.com>
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.
Thanks for the contribution!
Also: squash the second commit which fixes a whitespace issue diagnosed in the first commit. Unless @MaureenHelm wants the sample in a separate commit from the driver as with #31064; that's not an expectation I have.
No, put both commits in the same PR, driver first, then sample. |
Split driver and sample in to seperate commits. This is the entire driver functionality to read the temperature of a K type thermocouple. Additional code will be needed if a different type is used or to configure the alarm trigger functionality. On branch sensor_mcp9600 Your branch is up to date with 'origin/sensor_mcp9600'. Changes to be committed: modified: drivers/sensor/CMakeLists.txt modified: drivers/sensor/Kconfig modified: drivers/sensor/mcp9600/CMakeLists.txt modified: drivers/sensor/mcp9600/Kconfig modified: drivers/sensor/mcp9600/mcp9600.c modified: drivers/sensor/mcp9600/mcp9600.h modified: dts/bindings/sensor/microchip,mcp9600.yaml Signed-off-by: Steven Riedl <steve@serconsultingllc.com>
Sample code for using the mcp9600 driver. Sample only commit. Signed-off-by: Steven Riedl <steve@serconsultingllc.com> On branch sensor_mcp9600 Your branch is up to date with 'origin/sensor_mcp9600'. Changes to be committed: modified: samples/sensor/mcp9600/CMakeLists.txt modified: samples/sensor/mcp9600/README.rst deleted: samples/sensor/mcp9600/boards/nrf52840dongle_nrf52840.overlay modified: samples/sensor/mcp9600/prj.conf modified: samples/sensor/mcp9600/sample.yaml modified: samples/sensor/mcp9600/src/main.c
copy paste error included another driver I am working on that will be in a later contribution. deleted offending lines. On branch sensor_mcp9600 Your branch is up to date with 'origin/sensor_mcp9600'. Changes to be committed: modified: drivers/sensor/CMakeLists.txt modified: drivers/sensor/Kconfig Signed-off-by: Steven Riedl <steve@serconsultingllc.com>
Don't have time to finish this right now, will probably resubmit later, with proper multi-device support |
wanted to close on last comment |
Added driver and sample for mcp9600 microchip I2C thermocouple
amplifier. Tested on frdm_kw41z and nrf52850dk.
Signed-off-by: Steven Riedl steve@serconsultingllc.com