I am coming to Arduino from micro-processors that use various flavors of BASIC,
and am somewhat confused about number data types.
In some places I see 'uint8_t' and in other places I see 'byte'.
After reading various library *.cpp and *.h files, they use uint8_t, etc.
On the Arduino Reference page they describe data types: byte, int , word, etc.
From searching this Forum and online, I have not found a definitive explanation.
From my research, my understanding so far is:
byte OR uint8_t = 8-bit unsigned, 0 to 255
int OR int16_t = 16-bit signed, -32,768 to 32,767
short OR int16_t = 16-bit signed, -32,768 to 32,767 (Same as int)
unsigned int OR uint16_t = 16-bit unsigned, 0 to 65,535
word OR uint16_t = 16-bit unsigned, 0 to 65,535 (Same as unsigned int)
long OR int32_t = 32-bit signed, -2,147,483,648 to 2,147,483,647.
unsigned long OR uint32_t = 32 bit unsigned, 0 to 4,294,967,295
Is one form better than the other? Please let me know if my understanding is correct.
A short explanation will be greatly appreciated!!
Thanks in advance! I apologize if this is too basic of a question.