adafruit / Adafruit_Seesaw

Arduino library driver for seesaw multi-use chip
93 stars 64 forks source link

Interrupt examples don't use interrupts #24

Closed zostay closed 3 years ago

zostay commented 5 years ago

It would be nice if there was an example of using setGPIOInterrupts with attachInterrupt. The existing interrupt examples seem to be slightly misleading in suggesting that you can properly test for interrupts by watching for a LOW signal on a local pin that's been connected to the IRQ output on the SeeSaw module. However, what is properly needed is some code that can use attachInterrupt to detecting a FALLING signal instead.

ladyada commented 5 years ago

sounds like a good idea, want to try submitting a PR for a new example that has an attachInterrupt line?

zostay commented 5 years ago

Uh, well... shucks. You see, I could, but I have no way to test it at the moment. I only have Crickit Hats, RPi0s, and CPEs to play with right now. (I'm not going to use this library or Arduino to connect to SeeSaw for this project. I'm reading this code to understand how SeeSaw works so I can port it to Perl 6 for use with the hats.)

ladyada commented 5 years ago

a CPX can run arduino to test it for sure.

zostay commented 5 years ago

I suppose. We'll see.

ladyada commented 3 years ago

closing due to lack of activity