Skip to content

Commit e11a5ee

Browse files
📝 Some config comment updates
Co-Authored-By: Andrew <[email protected]>
1 parent e8c0363 commit e11a5ee

File tree

2 files changed

+61
-50
lines changed

2 files changed

+61
-50
lines changed

Marlin/Configuration.h

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2899,13 +2899,15 @@
28992899
//
29002900
//#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
29012901

2902-
//
2903-
// ANET and Tronxy 20x4 Controller
2904-
//
2905-
//#define ZONESTAR_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2906-
// This LCD is known to be susceptible to electrical interference
2907-
// which scrambles the display. Pressing any button clears it up.
2908-
// This is a LCD2004 display with 5 analog buttons.
2902+
/**
2903+
* ANET and Tronxy 20x4 Controller
2904+
* LCD2004 display with 5 analog buttons.
2905+
*
2906+
* NOTE: Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2907+
* This LCD is known to be susceptible to electrical interference which
2908+
* scrambles the display. Press any button to clear it up.
2909+
*/
2910+
//#define ZONESTAR_LCD
29092911

29102912
//
29112913
// Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
@@ -3542,22 +3544,26 @@
35423544
// :[1,2,3,4,5,6,7,8]
35433545
//#define NUM_M106_FANS 1
35443546

3545-
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3546-
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3547-
// is too low, you should also increment SOFT_PWM_SCALE.
3547+
/**
3548+
* Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3549+
* which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3550+
* is too low, you should also increment SOFT_PWM_SCALE.
3551+
*/
35483552
//#define FAN_SOFT_PWM
35493553

3550-
// Incrementing this by 1 will double the software PWM frequency,
3551-
// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
3552-
// However, control resolution will be halved for each increment;
3553-
// at zero value, there are 128 effective control positions.
3554-
// :[0,1,2,3,4,5,6,7]
3554+
/**
3555+
* Incrementing this by 1 will double the software PWM frequency, affecting heaters, and
3556+
* the fan if FAN_SOFT_PWM is enabled. However, control resolution will be halved for each
3557+
* increment; at zero value, there are 128 effective control positions.
3558+
* :[0,1,2,3,4,5,6,7]
3559+
*/
35553560
#define SOFT_PWM_SCALE 0
35563561

3557-
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
3558-
// be used to mitigate the associated resolution loss. If enabled,
3559-
// some of the PWM cycles are stretched so on average the desired
3560-
// duty cycle is attained.
3562+
/**
3563+
* If SOFT_PWM_SCALE is set to a value higher than 0, dithering can be used to mitigate the
3564+
* associated resolution loss. If enabled, some of the PWM cycles are stretched so on average
3565+
* the desired duty cycle is attained.
3566+
*/
35613567
//#define SOFT_PWM_DITHER
35623568

35633569
// @section extras
@@ -3567,9 +3573,11 @@
35673573

35683574
// @section lights
35693575

3570-
// Temperature status LEDs that display the hotend and bed temperature.
3571-
// If all hotends, bed temperature, and target temperature are under 54C
3572-
// then the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3576+
/**
3577+
* Temperature status LEDs that display the hotend and bed temperature.
3578+
* If all hotends, bed temperature, and target temperature are under 54C
3579+
* the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3580+
*/
35733581
//#define TEMP_STAT_LEDS
35743582

35753583
// Support for BlinkM/CyzRgb

Marlin/Configuration_adv.h

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,24 +1419,24 @@
14191419
#define MICROSTEP_MODES { 16, 16, 16, 16, 16, 16 } // [1,2,4,8,16]
14201420

14211421
/**
1422-
* @section stepper motor current
1422+
* @section stepper motor current
14231423
*
1424-
* Some boards have a means of setting the stepper motor current via firmware.
1424+
* Some boards have a means of setting the stepper motor current via firmware.
14251425
*
1426-
* The power on motor currents are set by:
1427-
* PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
1428-
* known compatible chips: A4982
1429-
* DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
1430-
* known compatible chips: AD5206
1431-
* DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
1432-
* known compatible chips: MCP4728
1433-
* DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT, AZTEEG_X3_PRO, AZTEEG_X5_MINI_WIFI, MIGHTYBOARD_REVE
1434-
* known compatible chips: MCP4451, MCP4018
1426+
* The power on motor currents are set by:
1427+
* PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
1428+
* known compatible chips: A4982
1429+
* DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
1430+
* known compatible chips: AD5206
1431+
* DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
1432+
* known compatible chips: MCP4728
1433+
* DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT, AZTEEG_X3_PRO, AZTEEG_X5_MINI_WIFI, MIGHTYBOARD_REVE
1434+
* known compatible chips: MCP4451, MCP4018
14351435
*
1436-
* Motor currents can also be set by M907 - M910 and by the LCD.
1437-
* M907 - applies to all.
1438-
* M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
1439-
* M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
1436+
* Motor currents can also be set by M907 - M910 and by the LCD.
1437+
* M907 - applies to all.
1438+
* M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
1439+
* M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
14401440
*/
14411441
//#define PWM_MOTOR_CURRENT { 1300, 1300, 1250 } // Values in milliamps
14421442
//#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
@@ -2634,19 +2634,23 @@
26342634
#define MAX_CMD_SIZE 96
26352635
#define BUFSIZE 4
26362636

2637-
// Transmission to Host Buffer Size
2638-
// To save 386 bytes of flash (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
2639-
// To buffer a simple "ok" you need 4 bytes.
2640-
// For ADVANCED_OK (M105) you need 32 bytes.
2641-
// For debug-echo: 128 bytes for the optimal speed.
2642-
// Other output doesn't need to be that speedy.
2643-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2637+
/**
2638+
* Host Transmit Buffer Size
2639+
* - Costs 386 bytes of flash and TX_BUFFER_SIZE+3 bytes of SRAM (if not 0).
2640+
* - 4 bytes required to buffer a simple "ok".
2641+
* - 32 bytes for ADVANCED_OK (M105).
2642+
* - 128 bytes for the optimal speed of 'debug-echo:'
2643+
* - Other output doesn't need to be that speedy.
2644+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2645+
*/
26442646
#define TX_BUFFER_SIZE 0
26452647

2646-
// Host Receive Buffer Size
2647-
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2648-
// To use flow control, set this buffer size to at least 1024 bytes.
2649-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2648+
/**
2649+
* Host Receive Buffer Size
2650+
* Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2651+
* To use flow control, set this buffer size to at least 1024 bytes.
2652+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2653+
*/
26502654
//#define RX_BUFFER_SIZE 1024
26512655

26522656
#if RX_BUFFER_SIZE >= 1024
@@ -3913,7 +3917,7 @@
39133917
/**
39143918
* Extra options for the M114 "Current Position" report
39153919
*/
3916-
//#define M114_DETAIL // Use 'M114` for details to check planner calculations
3920+
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
39173921
//#define M114_REALTIME // Real current position based on forward kinematics
39183922
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
39193923

@@ -3960,7 +3964,6 @@
39603964
* Spend 28 bytes of SRAM to optimize the G-code parser
39613965
*/
39623966
#define FASTER_GCODE_PARSER
3963-
39643967
#if ENABLED(FASTER_GCODE_PARSER)
39653968
//#define GCODE_QUOTED_STRINGS // Support for quoted string parameters
39663969
#endif

0 commit comments

Comments
 (0)