Hi, I'm a fairly competent developer for POSIX systems, especially with C and C++, but lately I've tried getting into programming some attiny85 chips.
I've tried multiple chips thinking maybe it was a bad one, even reset fuses to default, but no matter what I do, I can't get any input of any kind working, not even pin change interrupt!
I've tried reading the state of PINB, INT0's interrupt, and pin change interrupts, and I can't get ANY of them to do ANYTHING.
I can blink an LED just fine, even a ton of them, but I can't get any button on any pin to do anything of any kind.
I've tried the pull-up resistors method, I've tried tying a button to one pin and the other end of the button to ground, nothing works. I can't even get any kind of response with pin change interrupt!
Any ideas? I'm writing for AVR-gcc, no arduino, though I get the feeling I don't need to say that in this forum.
Got any code that should absolutely work no matter what? I've tried multiple tutorials for all 3 input methods, nothing.