sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
905 stars 279 forks source link

programming nRF52840 GPIO voltage #362

Open manifestman opened 5 years ago

manifestman commented 5 years ago

There is support for configuring NRF pins as GPIO. Viz:
NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos); // enables NRF_UICR->NFCPINS = 0; // 1 NFC pins = NFC 0 = NFC pins as GPIO However it would be nice to support for setting NRF52840 GPIO voltage. Similar to: NRF_UICR->REGOUT0 = UICR_REGOUT0_VOUT_3V3; // arduino-nRF5 gives error as it doesn't recognize REGOUT0.