Serial.Bits
From Xojo Documentation
This item was deprecated in version 2019r2. Please use SerialConnection.Bits as a replacement. |
Property (As Integer )
aSerial.Bits = newIntegerValue
or
IntegerValue = aSerial.Bits
Supported for all project types and targets.
or
IntegerValue = aSerial.Bits
Supported for all project types and targets.
The number of bits. This can be set in the IDE or via code.
Notes
Changing property values does not automatically change the state of the hardware, you must call Reset or re-Open the connection in order for the change to take effect. |
The following class constants are available:
Value | Class Constant |
---|---|
0 | Bits5 |
1 | Bits6 |
2 | Bits7 |
3 | Bits8 |
Example
The number of bits can be set in the IDE or by code, for example, in the Open event of the window. For example:
Serial1.Bits = Serial.Bits7