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 |

### highByte()

Examples |
    // word (16 bit or two bytes) variable, 0x03FF in Hexadecimal
    unsigned int x = 1023;
    // sets lb with the lower byte of x: 0xFF
    byte lb = lowByte(x);
    // sets hb with the higher byte of x: 0x03
    byte hb = highByte(x);
Description | A word is a variable made of 16 bits (or 2 bytes). The highByte command returns the value of the higher byte of a word
Syntax |
    highByte(wordValue)
Parameters |

wordValue | word: the word (unsigned int) variable to read the higher byte from

Returns | byte: the higher byte of the word
Usage | Application
Related | bit() bitRead() bitWrite() highByte() makeWord()

Updated on July 07, 2011 11:08:20pm PDT