I would like to measure the temperature coming from my MCP9808, but don't have much experience working with I2C on Keil uVision.
What is it I need to get started to read tempearture data through my DA14531 using an external sensor?
Thank you.
Device:

Hi pbaessler,
Please take a look at theDA14531-DA14585-586 Measuring TemperatureSoftware Example. This example demonstrates how to use I2C to read MCP9808 temperature register and write MCP9808 resolution register.
Generally , in the DA14531 product page, you will find great variety of easy-to-use SW Examples and tutorials that will really help you to get started with the DA14531 and SDK6.0.12.
查看“软件应用ions & Examples: Bluetooth” section!
//www.wsdof.com/products/connectivity/bluetooth-low-energy/products/da14531
Keep in mind that before starting with any of our SW examples, please read this document :Software Example Setup Using Python Link Script. All the SW Examples don’t contain the SDK, so you will need to link the Dialog 6.0.12 SDK with the downloaded SW example. Please let me know if you have any issues with the linking.
Thanks, PM_Dialog
Do I need the python link script for the MCP9808? I couldn't tell if that was only necessary for reading temperature values using the internal temperature sensor.
I also appear to have a lot of sdk files that contain an incorrect path, preventing me from running the program.
I haven't made any changes to the files from the temperature sensing tutorial. What could be wrong?
Hi pbaessler,
The python script has nothing to do with the MCP9808. It should be used only for linking the whole SW Example with the SDK6.0.12. probably , the script is not executed correctly, so can you please share a screenshot? Additionally, did you follow the correct steps according to the following document ?
http://lpccs-docs.dialog-semiconductor.com/Software_Example_Setup/index.html
Thanks, PM_Dialog
Here is a screenshot of what I see in the file management.
Hi pbaessler,
Probably the SW Example is not linked with the SDK. What is the SDK version that you are using? Did you executed correctly the python script ?
Thanks, PM_Dialog