Assistance in diploma. Question programming the Arduino mega

thank you very much Henry_Best. This is what I needed.