This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

New to ARM programming and specifically nrf51822.

I searched over the website, I couldn't find a good introductory documentation for programming the nrf51822, specifically the nrf51-dk. I have a transistor hooked to p0.01, I want to set that pin to high... first of all what's the function to call? It's clear how to set it as output from the examples but now to how change states of the GPIOs.. also what is really annoying is how do you map between the pin id (p0.01 and so on) and their respective pin numbers (0, 1, ...), if I want to set p0.01 as an output pin, should I use pin 1? or what? am I missing something?

Related