Search wiring.org.co:

Reference for Wiring version 0024+. 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
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
Usage | Application
Related | bit() bitRead() bitWrite() highByte() lowByte()

Updated on November 01, 2009 05:32:24pm PST