You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/user-manual/content.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1133,7 +1133,7 @@ void setup() {
1133
1133
1134
1134
// Initialize the RS-485 interface with a baud rate of 115200 and specific timings,
1135
1135
// the timings define the preamble and postamble durations for RS-485 communication
// Set the RS-485 interface in receive mode initially
1139
1139
MachineControl_RS485Comm.receive();
@@ -1170,7 +1170,7 @@ In this example sketch, a message is periodically sent over the RS-485 interface
1170
1170
1171
1171
The example sketch uses the following functions from the `Arduino_PortentaMachineControl` library for RS-485 communication. Here is an explanation of the functions:
1172
1172
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.
1174
1174
-`MachineControl_RS485Comm.receive()`: Puts the module in receive mode.
1175
1175
-`MachineControl_RS485Comm.noReceive()`: Disables receive mode for transmission.
1176
1176
-`MachineControl_RS485Comm.beginTransmission()`: Prepares the module to start transmitting data.
@@ -1216,7 +1216,7 @@ void setup() {
1216
1216
1217
1217
// Initialize the RS-485 interface with specific settings,
1218
1218
// specify baud rate, preamble and postamble times for RS-485 communication
0 commit comments