I’ve been looking at examples for using the built in battery monitor on the SEED Xiao nRF52840
I was guided to the pin out (thanks for that) and I tried using the pins called for in the spreadsheet, but none of them work. My code just spits out
AttributeError: ‘module’ object has no attribute ‘x’
This is my code I am starting with. I have tried using D14, READ_BAT and even AC9 for x. None seem to work.
One other thing I was hoping to achieve, assuming I am able to figure out how to read the above, is to put the SEEED module to sleep. I have found an example in the wiki, here
sd_power_system_off();
But it’s in C. Does anyone know the Python equivalent?
OK I was able to figure out the deep sleep function.
I also finally was informed of and able to find some examples on how to get the pin out in the console.
After learning about the dir(board) command, I used the example shown on this page to print it to Putty.