diff --git a/Language/Functions/Bits and Bytes/bitWrite.adoc b/Language/Functions/Bits and Bytes/bitWrite.adoc index b12982ed5..edba71380 100644 --- a/Language/Functions/Bits and Bytes/bitWrite.adoc +++ b/Language/Functions/Bits and Bytes/bitWrite.adoc @@ -35,7 +35,7 @@ Writes a bit of a numeric variable. [float] === Returns -Nothing +x: the value of the numeric variable after the bit at position n is written. -- // OVERVIEW SECTION ENDS @@ -59,6 +59,7 @@ void setup() { Serial.println(x, BIN); // 10000000 bitWrite(x, 0, 1); // write 1 to the least significant bit of x Serial.println(x, BIN); // 10000001 + Serial.println(bitWrite(x, 1, 1), BIN); // 10000011 } void loop() {}