Hello all, while I've been lurking the forums for a while I've never posted anything here before. While I'm still a beginner I have some experience with programming AVRs.
So I have a project where I'm using an ATmega1284P/PU1536 chip. Everything has been going quite OK but since I accidentally broke one of the legs while removing the MCU I had to order a new one. I ordered from Digikey what I thought was the same model but turned out to be ATmega1284P/PU1730 and after hours of googling and reading datasheets I'm nowhere near any conclusion.
I can't get my program to work with the new ATmega but it runs fine on the old one. It programs the chip but nothing seems to work.
My setup is Atom with PlatformIO and I have the USBasp programmer to write to the chip via ISP.
I write the code in C/C++/Wiring and use the mightycore core to use Arduino's libraries and Adafruits.
My code is here: https://pastebin.com/bicUSiDB (sorry for the Icelandic in comments)
Is there any difference that I'm unable to find information about between those two chips?
Best regards, Sam