4 x 4 Magic Square solutions

You're right, as far as I know it was demonstrated in the 17th century by the French mathematician "de Bess" that the total number of unique magic squares is 880.
Anyway, an Arduino code to solve this puzzle is an interesting thing for me, thanks!

PS: I am a math enthusiast, and I manage a FB page dedicated to science, logic and mathematics where I have fun with problems and quizzes.