How to add new sensor description - cristianoborgescardoso/nrf52 GitHub Wiki

Overview

The sensors are described in 2 files: devices.xml and devices.h. Both files contain the same information. When an edition will be necessary, be sure that you will edit both files.

Editing devices.xml

NOTE: YOU SHOULD MAKE THE SAME CHANGES IN devices.h

To add, delete or edit a sensor description, just add, delete or edit a block in the devices.xml. As shown in the image below:

octocat

NOTE: Only the fields id and ioClass from devices.xml, and consequently used by UICRFillerTool, will be parsed and written in the UICR. The fields name and description are used only to make easier the edition of the GPIO ports. The application flashed on the NRF52 boards will match the id and ioClass written in UICR with the struct device field, described in the devices.h file, with the same id. That means the fields name and description used by the application, actually are the ones described in the device.h file.

Editing devices.h

⚠️ **GitHub.com Fallback** ⚠️