ControllerDataType

ARDUINO와 Unity가 공통으로 사용하는 데이터 타입

ARDUINO

typedef boolean BOOL;

typedef byte UINT8;

typedef char INT8;

typedef unsigned short UINT16;

typedef short INT16;

typedef unsigned long UINT32;

typedef long INT32;

typedef float FLOAT32;

typedef char* STRING;

Unity

using BOOL = System.Boolean;

using INT8 = System.SByte;

using UINT8 = System.Byte;

using INT16 = System.Int16;

using UINT16 = System.UInt16;

using INT32 = System.Int32;

using UINT32 = System.UInt32;

using FLOAT32 = System.Single;

using STRING = System.String;