bitWrite() \ 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 | ### bitWrite()
Examples |
    byte x = 33; // sets x to 33 (00100001 in binary)
    bitWrite(x, 2, 1);	// writes a 1 to the second bit bit of x, now x is 00100101 (37 in decimal)
Description | The bitWrite command writes 0 or 1 to de desired bit of a byte variable.
Syntax |
    bitWrite(byteValue, bitIndex, bitValue)
Parameters |
byteValue | byte: the byte variable to write the bit to
bitIndex | int: the bit to write
bitValue | int: the value to write 0 or 1
Returns | None
Usage | Application
Related | bit() bitRead() lowByte() highByte() makeWord()

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