byte data type

Hi friends,
can i use arduino libraries for other controllers? I am trying to 1 library for other controller but that library uses 'byte' data type which is normal to understand by Arduino IDE but is giving error for my IDE.
I tried to fix this by 'typedef byte unsigned char' but is not working.

kindly help me to solve this issue.. :confused:

Arduino IDE normally uderstand to "byte" because it is defined by typedef in the Arduino.h.
You have to shift over the keywords. It have to be:
"typedef unsigned char byte;"
to work.

typedef type-declaration synonym;

omkar787898:
Hi friends,
can i use arduino libraries for other controllers? I am trying to 1 library for other controller but that library uses 'byte' data type which is normal to understand by Arduino IDE but is giving error for my IDE.
I tried to fix this by 'typedef byte unsigned char' but is not working.

kindly help me to solve this issue.. :confused:

Please use a normal color (black) for your text :wink: the yellow on gray is close to impossible to read for me :frowning:

@sterretje
Yes, I was thinking the same... :slight_smile:

sterretje:
Please use a normal color (black) for your text :wink: the yellow on gray is close to impossible to read for me :frowning:

Only close to impossible?

You need to look at some of the other posts to see what is accepted standard practice when you post on the forum.

:smiling_imp:

.