ValueError: The channel sent is invalid on a Raspberry Pi – Controlling GPIO Pin 2 (BOARD) using Python causes Error

So I have a tiny little fan connected to pin 6(Ground) and pin 2. I am trying to manually start and stop the fan when needed but I am getting this error when trying: ValueError: The channel sent is invalid on a Raspberry Pi Here is my code that I am executing as root. It … Read more