This page is under construction and may not have complete or up-to-date information.

thinkyhead

Hardware

Description

Machine electronics and main components.

hardware

Use these options to define the machine hardware, including the mainboard, serial ports, etc. These are the most basic settings for every type of machine that Marlin supports.

1.0.0

#define MOTHERBOARD board

Motherboard of the machine.

hardware

Set the motherboard ID using one of the BOARD_... constants defined in boards.h.

This option provides Marlin with the pin definitions it needs to control the onboard components and connected peripherals.

Example
#define MOTHERBOARD BOARD_RAMPS_14_EFB
1.0.0

#define SERIAL_PORT int

Main serial port.

The main serial port is used to communicate with the host. This is usually the serial port connected to USB.

Examples
#define SERIAL_PORT  0 // Set the first serial port to UART0
#define SERIAL_PORT -1 // Set the first serial port to Native USB

#define BAUDRATE int

Default baud rate for the main serial port. (USB ports always run at full speed.)

2.0.0

#define BAUD_RATE_GCODE

Enable setting the baud with M575 P<port> B<baud rate>.

2.0.0

//#define SERIAL_PORT_2 int

Secondary serial port

The secondary serial port can be used to communicate with a host, serial controller, or WiFi interface.

//#define BAUDRATE_2 int

Default baud rate for the secondary serial port. If not specified then BAUDRATE is used.

2.0.0

//#define SERIAL_PORT_3 int

Third serial port

The third serial port can be used to communicate with a host, serial controller, or WiFi interface.

//#define BAUDRATE_3 int

Default baud rate for the third serial port. If not specified then BAUDRATE is used.

2.1.3

//#define RS485_SERIAL_PORT int

RS485 serial port (i.e., CANbus)

The RS485 serial ports is used to communicate with peripherals that use the CAN bus protocol.

//#define M485_PROTOCOL int

Leave this set to 1 to use the default protocol. Check your host for protocol compatibility.

//#define RS485_BUS_BUFFER_SIZE int

The size of the CAN bus buffer. This should be set to the maximum number of messages that can be sent in a single CAN frame.

1.1.0

//#define BLUETOOTH

Bluetooth wireless interface.

Enable the Bluetooth serial interface on AT90USB devices.