I wanted to create a pattern of BYTEs like the following:
0xAA 0xAA 0x01 0x04 0x00 0x00 0x00 0x00 0xFF 0xFF
I have written the following program, it works fine