Argh... never mind. The code is fine, I had a floating GPIO somewhere that messed it up.
Its working now Image may be NSFW.
Clik here to view.
Its working now Image may be NSFW.
Clik here to view.
