SerialConnection.Bits
From Xojo Documentation
Property (As Integer )
aSerialConnection.Bits = newIntegerValue
or
IntegerValue = aSerialConnection.Bits
New in 2019r2
Supported for all project types and targets.
or
IntegerValue = aSerialConnection.Bits
New in 2019r2
Supported for all project types and targets.
The number of bits.
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:
SerialConnection1.Bits = SerialConnection.Bits7