Disable GPIO by default and temporarily activate it via python script
<p>I'm using a Raspberry Pi 2 with DietPi and plugged in an alarm module into the GPIO 14 (Pin 08).</p>

<p>I would now like to disable this Pin by default and only allow it to turn on temporarily within my python script. </p>

<p>So far I've tried using RPi.GPIO which hasn't worked and unexport/export but this only ended up damaging my os to an extend where I had to reinstall it.</p>

<p>Clearly I am doing something very wrong. Does anyone have experience with this and could point me in the right direction?</p>