davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
228 stars 52 forks source link

Interrupts are wonky #7

Closed tylerstillwater closed 11 years ago

tylerstillwater commented 11 years ago

The "watch" example demonstrates using interrupts.

Right now, it behaves strangely. If you watch EdgeFalling, it reports "true" for the first few edge transitions. After that, it reports "false".

If you watch EdgeRising, it reports true at first, but then it starts triggering for both rising and falling, reporting false each time.

I'm not sure what to make of this. @davecheney any insight you could offer?

tylerstillwater commented 11 years ago

Disregard this. Interrupts are fine. My wiring was wrong.

chadkouse commented 10 years ago

As a courtesy to anyone looking at this issue wondering "But my interrupts ARE wonky!" -- If you are on a raspberry pi make sure you are using rpi.OpenPin and not gpio.OpenPin ! This cost me like 45 min.