Crossroads I made your piano, and received the same error when I tried to change these lines:
for (x=0; x<14; x=x+1){ // input pins with pullup
pinMode(keyArray[x], INPUT);
digitalWrite (keyArray[x], HIGH);
}
to this:
for (x=0; x<14; x=x+1){ // input pins with pullup
pinMode(keyArray[x], INPUT_PULLUP);
}
Side note: Also, couldn't get your piano to work correctly when I used the Atmega_Board_Programmer linked on Nick Gammon's Minimal Board page.
Had to use your ATmegaBOOT_1284P_16MHz.hex file.
I originally did a manual fix, but then lefty pointed out that he had copied arduino.h and wiring.c from a newer Arduino core to his 1284P core, so I can't remember if I then did the same as well.
The manual fix involved modifying both files to first define the new mode and then add the new mode so that the single option then makes the pin INPUT and sets it HIGH, which is what INPUT_PULLUP does in a single IDE instruction.
Either fix should make INPUT_PULLUP work properly on 1284 cores anyway
Sorry, it is wiring_digital.c, in the pinMode function
Read the link I posted CrossRoads. If you added the define in Arduino.h then it will compile but it won't actually do what it's supposed to do. It will just satisfy the 'else' part in the pinMode function and using INPUT_PULLUP would set the pin to OUTPUT. You have to add the extra part to set the registers for INPUT and HIGH.
I'm having the same problem so I will try the updates as well.
Does anyone know if the mighty1284 core is still being updated? It seems like a while since the last release. So far I am pleased with the core and the 1284 rocks.
That's quite a while. He's been active in the past few months on GitHub, but on other products.
I found a fork with the fix included here:
However, I don't see a pull request, so I can't tell if one wasn't made or if maniacbug no longer maintains the Mighty core.
Would it be worth it to start maintaining a fork and see if maniacbug returns and pulls the changes? This is new grounds for me, but I am willing to maintain updates on the chip. I have two really interesting projects that I am about to dive into, so I will be tied to the 1284 for at least 6 months. The proto boards arrive tomorrow....I can't wait!