Some analog infrared sensor have 0-3V output.
As I don’t want to use a voltage divider I was thinking if a reconfigure of analogRead for nrf52 boards could work to read sensor voltage directly.
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.
Some analog infrared sensor have 0-3V output.
As I don’t want to use a voltage divider I was thinking if a reconfigure of analogRead for nrf52 boards could work to read sensor voltage directly.
Coding starts here
https://github.com/espruino/Espruino/blob/0a9f07a0fc21d1f989adaa8f35f74b29349307d6/targets/nrf5x/jshardware.c#L2648