Skip to content
Snippets Groups Projects
Commit a4abad43 authored by Sam Calisch's avatar Sam Calisch
Browse files

add XL as gpio

parent 634acf74
Branches
No related tags found
Loading
//sec 2017
void setup() {
//Need to switch to internal LFCLK to disconnect from XL1 and XL2
NRF_CLOCK->LFCLKSRC = 0; //disconnect XL1 AND XL2 FROM LFCLK
NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0){}
//now can use XL1 and XL2 as usual gpio
}
void loop() {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment