Hopefully this will not turn into a one person "conversation", but what I had originally called "worked" - was not entirely accurate. Apparently, I can "clear" the LCD while the interrupt is off, but it still flakes out on me if I try to do anything else.
Example time - If I do this - it works fine:
detachInterrupt(0);
delay(500);
lcd.clear();
//lcd.printIn("Current State:");
//print something on the display's second line.
//lcd.cursorTo(2, 0); //line=2, x=0.
//if (state == 0) {
// lcd.printIn("OFF");
//} else {
// lcd.printIn("ON");
//}
delay(500);
attachInterrupt(0, buttonPressed, RISING);
If I uncomment anything here, it will lock up - ie:
detachInterrupt(0);
delay(500);
lcd.clear();
lcd.printIn("Current State:");
//print something on the display's second line.
//lcd.cursorTo(2, 0); //line=2, x=0.
//if (state == 0) {
// lcd.printIn("OFF");
//} else {
// lcd.printIn("ON");
//}
delay(500);
attachInterrupt(0, buttonPressed, RISING);
Any thoughts? I'm desperate here as I need to use the 4 bit library because I need two interrupts. Oh, and I should add one more thing - I modified the LCD4Bit.cpp to move the enable pin from 2 to 6 (pin 2 is an interrupt pin). Honestly, that is all I modified there - just one line.
Thanks,
Josh