Reference for Wiring 1.0 (ALPHA) 0017+. If you have a previous version, use the reference included with your software.
If you see any errors or have any comments, let us know.
Name
makeWord
Examples
unsigned int x; // word (16 bit or two bytes) variable
x = makeWord(0x03, 0xFF); // x is set to 0x03FF or 1023 in decimal
Description
A word is a variable made of 16 bits (or 2 bytes). The makeWord command returns the word value resulting of setting the given high and low bytes
word 변수는 16비트(2 bytes)로
구성됩니다. makeword는
주어진 상위, 하위
바이트를 조합하여 word
값을 반환합니다.
Syntax
makeWord(highByte, lowByte)
Parameters
highByte
byte: the higher byte value
상위 바이트
lowByte
byte: the lower byte value
하위 바이트
Returns
unsigned int: the word value resulting of setting the given high and low bytes