Hi Everyone,
I want to hard code some arrays of data into some array variables
I know I can do it in variable declaration stage, for example :
unsigned char Internal_Preset[38]=
{0x00,0x19,0x20,0x59,0x40,0x40,0x8,0x00,0x18,0x20,0xA,0x00,0x40,0x40,0x40,0x40,0x40,0x00,0x40,0x64,0x00,0x00
,0x40,0x40,0x40,0x7F,0x00,0x64,0x40,0x40,0x40,0xA,0x00,0x00,0x40,0x00,0x00,0x00} ;
But if I have some list of known value that can be hard-code into the program
list 1 : {0x00,0x17,.........,0x00} ;
list 2 : {0x30,0x17,.........,0x7f} ;
..............
...............
list n : {0x30,0x17,.........,0xb1} ;
and want to store one of these list into the variable Internal_Preset[38] during program run, e.g. list 2,
I can only write tendious statement like that :
Internal_Preset[0]=0x30 ;
Internal_Preset[1]=0x17 ;
........
........
........
Internal_Preset[37]=0x7f ;
Is there any method that I can read the data list like that :
Internal_Preset={0x30,0x17,.........,0x7f} ;
Thanks !