10 years, 9 months ago.

Datatypes

Hi, I'm trying to convert a program from Arduino to mbed and found the datatype "Byte" doesn't exist in mbed syntax. What do I use instead ? Do I use char instead ? Best regards

2 Answers

10 years, 9 months ago.

include something like

typedef unsigned char Byte; 

Accepted Answer
10 years, 9 months ago.

Hi Khaled the mbed use ansi c types, the char type uses 1 byte in memory, so yes i believe you can use a char to represent a byte and a char array to represent an array of bytes.

Greetings