$ 0 0 Apparently the problem is in the Atmega1284p bootloader. The fuse settings should be correct in order to recognize the endstops...