Arduino MEGA 24 Output Relay Example

LED 1 (D26) LED 2 (D27)
LED 3 (D28) LED 4 (D29)
LED 5 (D30) LED 6 (D31)
LED 7 (D32) LED 8 (D33)
LED 9 (D34) LED 10 (D35)
LED 11 (D36) LED 12 (D37)
LED 13 (D38) LED 14 (D39)
LED 15 (D40) LED 16 (D41)
LED 17 (D42) LED 18 (D43)
LED 19 (D44) LED 20 (D45)
LED 21 (D46) LED 22 (D47)
LED 23 (D48) LED 24 (D49)