Re: Direct Pin access (set/clear/direction)
Posted: Mon Feb 23, 2015 8:30 pm
Just thought I'd mention for those who land on this thread that the following define is faulty :
GPIO needs to be either 1, 2, 4, 8, etc.. depending on the GPIO you want to target.
In other words: 1 for GPIO0, 2 for GPIO1, 4 for GPIO2, etc.
nicoverduin wrote:#define GPIO 0
PIN_DIR_OUTPUT = GPIO;
GPIO needs to be either 1, 2, 4, 8, etc.. depending on the GPIO you want to target.
In other words: 1 for GPIO0, 2 for GPIO1, 4 for GPIO2, etc.