Skip to content

Commit 4ee6359

Browse files
committed
Wip
1 parent 6ea1411 commit 4ee6359

File tree

1 file changed

+3
-3
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/user-manual

1 file changed

+3
-3
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/user-manual/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ void setup() {
11331133
11341134
// Initialize the RS-485 interface with a baud rate of 115200 and specific timings,
11351135
// the timings define the preamble and postamble durations for RS-485 communication
1136-
MachineControl_RS485Comm.begin(115200, 0, 500);
1136+
MachineControl_RS485Comm.begin(115200, SERIAL_8N1, 0, 500);
11371137
11381138
// Set the RS-485 interface in receive mode initially
11391139
MachineControl_RS485Comm.receive();
@@ -1170,7 +1170,7 @@ In this example sketch, a message is periodically sent over the RS-485 interface
11701170

11711171
The example sketch uses the following functions from the `Arduino_PortentaMachineControl` library for RS-485 communication. Here is an explanation of the functions:
11721172

1173-
- `MachineControl_RS485Comm.begin(baud, pre, post)`: Initializes the RS-485 module with specified baud rate and timing settings.
1173+
- `MachineControl_RS485Comm.begin(baud, config, pre, post)`: Initializes the RS-485 module with specified baud rate, serial_config and timing settings.
11741174
- `MachineControl_RS485Comm.receive()`: Puts the module in receive mode.
11751175
- `MachineControl_RS485Comm.noReceive()`: Disables receive mode for transmission.
11761176
- `MachineControl_RS485Comm.beginTransmission()`: Prepares the module to start transmitting data.
@@ -1216,7 +1216,7 @@ void setup() {
12161216
12171217
// Initialize the RS-485 interface with specific settings,
12181218
// specify baud rate, preamble and postamble times for RS-485 communication
1219-
MachineControl_RS485Comm.begin(115200, 0, 500);
1219+
MachineControl_RS485Comm.begin(115200, SERIAL_8N1, 0, 500);
12201220
12211221
// Enable full duplex mode and 120 Ohm termination resistors
12221222
MachineControl_RS485Comm.setFullDuplex(true);

0 commit comments

Comments
 (0)