Ok, I just updated the code, still isn't working. Does the fact that i'm getting an actual signal and not a digital one mean I need to go about checking the edges differently?
also @@energia I tried the code you posted and it didn't make the light blink, When i hit the button nothing happens. Maybe my board is messed up?