Search wiring.org.co:

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name |

### makeWord()

Examples |
    // word (16 bit or two bytes) variable
    unsigned int x;
    // x is set to 0x03FF or 1023 in decimal
    x = makeWord(0x03, 0xFF);
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 July 07, 2011 11:08:38pm PDT