I an confused about the pinutils.findpin section, what it is need for?
It's not that useful on nRF52 as I2C/SPI/Serial can be on any bit - mainly it was there for STM32.
The bits you need are the ones for ADC since they say what channel/pin the ADC is on.
You can safely ignore anything to do with SPI/I2C/USART - they only exist on nRF52 so that they appear in the pinout diagram, eg. https://www.espruino.com/MDBT42Q#pinout
What are correct names for pins and interfaces there? Pins are not Dxx but PDxx
Honestly, not sure why it's doing that, but why not just look at the PCB (or even the manufacturer's docs) to try and find out what the I2C parts are then try and look at those addresses?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's not that useful on nRF52 as I2C/SPI/Serial can be on any bit - mainly it was there for STM32.
The bits you need are the ones for ADC since they say what channel/pin the ADC is on.
You can safely ignore anything to do with SPI/I2C/USART - they only exist on nRF52 so that they appear in the pinout diagram, eg. https://www.espruino.com/MDBT42Q#pinout
It's based on STM32 but is too much of a pain to explain here. Just use https://github.com/espruino/Espruino/blob/master/boards/MDBT42Q.py as the basis.
should work and should invert it in Espruino too.
Honestly, not sure why it's doing that, but why not just look at the PCB (or even the manufacturer's docs) to try and find out what the I2C parts are then try and look at those addresses?