I connected display FT800 (FT_VM800P43_50.h) to the Arduino MEGA 2560. It works very well. The problem started after switching to ATmega1284P. Generally, everything works fine, but I want to dim the screen by FTImpl.Write (REG_PWM_DUTY, 10). The screen is flashing graphics, sometimes I get the logo FTTDI, and after a few seconds the Arduino crashes. This problem does not have to ATmega 2560. I tried different PINs but it did not bring improvement. What could be the problem? I use bootloader optibootloader clock 16MHz, mapping PINs as in the Annex.
Sorry for my poor English.
pins_arduino.h (6.64 KB)