Skip to content
Snippets Groups Projects
Select Git revision
  • 73cd67da593c3ca99fcf4f65a5fc19aa0feaa86f
  • main default protected
2 results

TODO.md

Blame
  • XL_as_gpio.ino 343 B
    //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() {}