this could be made into a 2D Array
and you could initialise everything statically instead of inside the setup()
byte safeDataAddr[][2] = {
{0x69, 0x00},
{0x60, 0x02},
{0x60, 0x02},
{0x60, 0x03},
{0x60, 0x04},
};
// 2-byte address to send target address during a safe load.
byte safeTargetAddr[] = {0x60, 0x05};
// 2-byte address to send number of words to write and trigger the safe load.
byte safeTrigAddr[] = {0x60, 0x06};
// Trigger safe load of 1 data word.
byte safeTrig1[] = {0x00, 0x00, 0x00, 0x01};
// 4-byte address of volume control.
byte volAddress[] = {0x00, 0x00, 0x00, 0x19};
I see a lot of 0x60 and successive numbers so wonder if the arrays are really needed