This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.*///---------------------------------------------------------

// The 8 bit data bus is connected to PORTA of the Arduino Mega2560// 5V voltage regulator on Arduino Mega has been replaced with a 3.3V regulator to provide 3.3V logic

void loop() { disp(); delay(1000); }You will notice it is for the 8-bit interface, however, the initialization/sequence/timing will be the same because even in 16-bit mode the commands are sent using only 8-bits.