Start Back Next End
  
ZBasic System Library
125
ZBasic Microcontrollers
FlipBits
Type
Function returning Byte
Invocation
FlipBits(arg)
Parameter
Method
Type
Description
arg
ByVal
Byte
The value to be bit-wise reversed.
Discussion
This function reverses the order of the bits in the supplied value and returns the result.  This is useful, for
example, if you want to send data using ShiftOut() but you want the least significant bit to be sent first.
Example
Dim b as Byte
b = &B1011_0110
b = FlipBits(b)
' result is &B0110_1101
Previous page Top Next page