highByte() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0023+. 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 | ### highByte()
Examples |
    unsigned int x = 1023; // word (16 bit or two bytes) variable, 0x03FF in Hexadecimal
    byte lb = lowByte(x);	// sets lb with the lower byte of x: 0xFF
    byte hb = highByte(x);  // sets hb with the higher byte of x: 0x03
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 November 01, 2009 05:31:58pm PST