sandeepmistry/arduino-nRF5

programming nRF52840 GPIO voltage

Open

#362 opened on Jun 8, 2019

View on GitHub
 (0 comments) (1 reaction) (0 assignees)C (288 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (952 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide