drivers/tmp117: TMP117 driver#22310
Conversation
tests/drivers/tmp117: test for the TMP117 driver This driver add the support for the TMP117 i2c temperature sensor.
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: crasbe <crasbe@gmail.com>
|
Thanks @leocordier. Could you also check if SAUL support would be easy to add? See https://docs.riot-os.org/advanced_tutorials/device_drivers/#saul |
Hello, i'm starting to add SAUL support to the TMP117 but i'm not familiar with the SAUL system. However, i don't understand how my device can be initialized only with saul. |
|
SAUL-compatibel sensors are/can be auto-initialized. See https://github.com/RIOT-OS/RIOT/blob/master/drivers/saul/init_devs/auto_init_si70xx.c and https://github.com/RIOT-OS/RIOT/blob/master/drivers/saul/init_devs/init.c#L342. The main driver Makefile must look like this: https://github.com/RIOT-OS/RIOT/blob/master/drivers/si70xx/Makefile Now, when the Does this help? |
|
Yep, thanks i will look into it |
|
Here it is, i've tested the saul support for the tmp117 and it works ! 🙂 |
Contribution description
This pull request add a basic driver for the TMP117 sensor with the following capabilities:
This pull request add a driver in the
driversfolder and a test in thetest/driversfolderTesting procedure
The basic test that i wrote, initialize the sensor with default paramaters and i2c address.
After the initialization, it display the measured temperature every 1.5 seconds.
If the initialization or the temperature reading fail, it displays anb error.
Issues/PRs references
issue #22308
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: