How to declare Array in the form of Hex and string

Status
Not open for further replies.

Code C - [expand]
1
char array[]={0x61,0x62,0x63};




Code C - [expand]
1
char array[]={'A','B','C'};




Code C - [expand]
1
char array[]="ABC"; // In this case a extra /0 will be added as 4th element



the size of the array will number of elements given..
 

Thank you so much

but,
i need to declare string and hex value in the single array

Example:

char arrry[] = {"AD01", 0xD3, 0xFE};// This statement true or else
 

software SPI is comparatively easy you have to generate 3 signals and poll one signal..
You have to generate
SS - slave select
MOSI - Master out slave input
SCLK - serial clock

after that you have to get the input
MISO

first of all you have to understand how SPI works and then you can learn **broken link removed**.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…