Skip to content

Commit 0b0a097

Browse files
📝 Update some comments
Co-Authored-By: Andrew <18502096+classicrocker883@users.noreply.github.com>
1 parent 1938f12 commit 0b0a097

File tree

760 files changed

+23176
-18994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

760 files changed

+23176
-18994
lines changed

config/default/Configuration.h

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,13 +2910,15 @@
29102910
//
29112911
//#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
29122912

2913-
//
2914-
// ANET and Tronxy 20x4 Controller
2915-
//
2916-
//#define ZONESTAR_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2917-
// This LCD is known to be susceptible to electrical interference
2918-
// which scrambles the display. Pressing any button clears it up.
2919-
// This is a LCD2004 display with 5 analog buttons.
2913+
/**
2914+
* ANET and Tronxy 20x4 Controller
2915+
* LCD2004 display with 5 analog buttons.
2916+
*
2917+
* NOTE: Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2918+
* This LCD is known to be susceptible to electrical interference which
2919+
* scrambles the display. Press any button to clear it up.
2920+
*/
2921+
//#define ZONESTAR_LCD
29202922

29212923
//
29222924
// Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
@@ -3562,22 +3564,26 @@
35623564
// :[1,2,3,4,5,6,7,8]
35633565
//#define NUM_M106_FANS 1
35643566

3565-
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3566-
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3567-
// is too low, you should also increment SOFT_PWM_SCALE.
3567+
/**
3568+
* Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3569+
* which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3570+
* is too low, you should also increment SOFT_PWM_SCALE.
3571+
*/
35683572
//#define FAN_SOFT_PWM
35693573

3570-
// Incrementing this by 1 will double the software PWM frequency,
3571-
// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
3572-
// However, control resolution will be halved for each increment;
3573-
// at zero value, there are 128 effective control positions.
3574-
// :[0,1,2,3,4,5,6,7]
3574+
/**
3575+
* Incrementing this by 1 will double the software PWM frequency, affecting heaters, and
3576+
* the fan if FAN_SOFT_PWM is enabled. However, control resolution will be halved for each
3577+
* increment; at zero value, there are 128 effective control positions.
3578+
* :[0,1,2,3,4,5,6,7]
3579+
*/
35753580
#define SOFT_PWM_SCALE 0
35763581

3577-
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
3578-
// be used to mitigate the associated resolution loss. If enabled,
3579-
// some of the PWM cycles are stretched so on average the desired
3580-
// duty cycle is attained.
3582+
/**
3583+
* If SOFT_PWM_SCALE is set to a value higher than 0, dithering can be used to mitigate the
3584+
* associated resolution loss. If enabled, some of the PWM cycles are stretched so on average
3585+
* the desired duty cycle is attained.
3586+
*/
35813587
//#define SOFT_PWM_DITHER
35823588

35833589
// @section extras
@@ -3587,9 +3593,11 @@
35873593

35883594
// @section lights
35893595

3590-
// Temperature status LEDs that display the hotend and bed temperature.
3591-
// If all hotends, bed temperature, and target temperature are under 54C
3592-
// then the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3596+
/**
3597+
* Temperature status LEDs that display the hotend and bed temperature.
3598+
* If all hotends, bed temperature, and target temperature are under 54C
3599+
* the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3600+
*/
35933601
//#define TEMP_STAT_LEDS
35943602

35953603
// Support for BlinkM/CyzRgb

config/default/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)
@@ -2642,19 +2642,23 @@
26422642
#define MAX_CMD_SIZE 96
26432643
#define BUFSIZE 4
26442644

2645-
// Transmission to Host Buffer Size
2646-
// To save 386 bytes of flash (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
2647-
// To buffer a simple "ok" you need 4 bytes.
2648-
// For ADVANCED_OK (M105) you need 32 bytes.
2649-
// For debug-echo: 128 bytes for the optimal speed.
2650-
// Other output doesn't need to be that speedy.
2651-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2645+
/**
2646+
* Host Transmit Buffer Size
2647+
* - Costs 386 bytes of flash and TX_BUFFER_SIZE+3 bytes of SRAM (if not 0).
2648+
* - 4 bytes required to buffer a simple "ok".
2649+
* - 32 bytes for ADVANCED_OK (M105).
2650+
* - 128 bytes for the optimal speed of 'debug-echo:'
2651+
* - Other output doesn't need to be that speedy.
2652+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2653+
*/
26522654
#define TX_BUFFER_SIZE 0
26532655

2654-
// Host Receive Buffer Size
2655-
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2656-
// To use flow control, set this buffer size to at least 1024 bytes.
2657-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2656+
/**
2657+
* Host Receive Buffer Size
2658+
* Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2659+
* To use flow control, set this buffer size to at least 1024 bytes.
2660+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2661+
*/
26582662
//#define RX_BUFFER_SIZE 1024
26592663

26602664
#if RX_BUFFER_SIZE >= 1024
@@ -3929,7 +3933,7 @@
39293933
/**
39303934
* Extra options for the M114 "Current Position" report
39313935
*/
3932-
//#define M114_DETAIL // Use 'M114` for details to check planner calculations
3936+
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
39333937
//#define M114_REALTIME // Real current position based on forward kinematics
39343938
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
39353939

@@ -3976,7 +3980,6 @@
39763980
* Spend 28 bytes of SRAM to optimize the G-code parser
39773981
*/
39783982
#define FASTER_GCODE_PARSER
3979-
39803983
#if ENABLED(FASTER_GCODE_PARSER)
39813984
//#define GCODE_QUOTED_STRINGS // Support for quoted string parameters
39823985
#endif

config/examples/3DFabXYZ/Migbot/Configuration.h

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,13 +2936,15 @@
29362936
//
29372937
//#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
29382938

2939-
//
2940-
// ANET and Tronxy 20x4 Controller
2941-
//
2942-
//#define ZONESTAR_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2943-
// This LCD is known to be susceptible to electrical interference
2944-
// which scrambles the display. Pressing any button clears it up.
2945-
// This is a LCD2004 display with 5 analog buttons.
2939+
/**
2940+
* ANET and Tronxy 20x4 Controller
2941+
* LCD2004 display with 5 analog buttons.
2942+
*
2943+
* NOTE: Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
2944+
* This LCD is known to be susceptible to electrical interference which
2945+
* scrambles the display. Press any button to clear it up.
2946+
*/
2947+
//#define ZONESTAR_LCD
29462948

29472949
//
29482950
// Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
@@ -3588,22 +3590,26 @@
35883590
// :[1,2,3,4,5,6,7,8]
35893591
//#define NUM_M106_FANS 1
35903592

3591-
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3592-
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3593-
// is too low, you should also increment SOFT_PWM_SCALE.
3593+
/**
3594+
* Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
3595+
* which is not as annoying as with the hardware PWM. On the other hand, if this frequency
3596+
* is too low, you should also increment SOFT_PWM_SCALE.
3597+
*/
35943598
//#define FAN_SOFT_PWM
35953599

3596-
// Incrementing this by 1 will double the software PWM frequency,
3597-
// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
3598-
// However, control resolution will be halved for each increment;
3599-
// at zero value, there are 128 effective control positions.
3600-
// :[0,1,2,3,4,5,6,7]
3600+
/**
3601+
* Incrementing this by 1 will double the software PWM frequency, affecting heaters, and
3602+
* the fan if FAN_SOFT_PWM is enabled. However, control resolution will be halved for each
3603+
* increment; at zero value, there are 128 effective control positions.
3604+
* :[0,1,2,3,4,5,6,7]
3605+
*/
36013606
#define SOFT_PWM_SCALE 0
36023607

3603-
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
3604-
// be used to mitigate the associated resolution loss. If enabled,
3605-
// some of the PWM cycles are stretched so on average the desired
3606-
// duty cycle is attained.
3608+
/**
3609+
* If SOFT_PWM_SCALE is set to a value higher than 0, dithering can be used to mitigate the
3610+
* associated resolution loss. If enabled, some of the PWM cycles are stretched so on average
3611+
* the desired duty cycle is attained.
3612+
*/
36073613
//#define SOFT_PWM_DITHER
36083614

36093615
// @section extras
@@ -3613,9 +3619,11 @@
36133619

36143620
// @section lights
36153621

3616-
// Temperature status LEDs that display the hotend and bed temperature.
3617-
// If all hotends, bed temperature, and target temperature are under 54C
3618-
// then the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3622+
/**
3623+
* Temperature status LEDs that display the hotend and bed temperature.
3624+
* If all hotends, bed temperature, and target temperature are under 54C
3625+
* the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
3626+
*/
36193627
//#define TEMP_STAT_LEDS
36203628

36213629
// Support for BlinkM/CyzRgb

config/examples/3DFabXYZ/Migbot/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)
@@ -2642,19 +2642,23 @@
26422642
#define MAX_CMD_SIZE 96
26432643
#define BUFSIZE 4
26442644

2645-
// Transmission to Host Buffer Size
2646-
// To save 386 bytes of flash (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
2647-
// To buffer a simple "ok" you need 4 bytes.
2648-
// For ADVANCED_OK (M105) you need 32 bytes.
2649-
// For debug-echo: 128 bytes for the optimal speed.
2650-
// Other output doesn't need to be that speedy.
2651-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2645+
/**
2646+
* Host Transmit Buffer Size
2647+
* - Costs 386 bytes of flash and TX_BUFFER_SIZE+3 bytes of SRAM (if not 0).
2648+
* - 4 bytes required to buffer a simple "ok".
2649+
* - 32 bytes for ADVANCED_OK (M105).
2650+
* - 128 bytes for the optimal speed of 'debug-echo:'
2651+
* - Other output doesn't need to be that speedy.
2652+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2653+
*/
26522654
#define TX_BUFFER_SIZE 0
26532655

2654-
// Host Receive Buffer Size
2655-
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2656-
// To use flow control, set this buffer size to at least 1024 bytes.
2657-
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2656+
/**
2657+
* Host Receive Buffer Size
2658+
* Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
2659+
* To use flow control, set this buffer size to at least 1024 bytes.
2660+
* :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2661+
*/
26582662
//#define RX_BUFFER_SIZE 1024
26592663

26602664
#if RX_BUFFER_SIZE >= 1024
@@ -3929,7 +3933,7 @@
39293933
/**
39303934
* Extra options for the M114 "Current Position" report
39313935
*/
3932-
//#define M114_DETAIL // Use 'M114` for details to check planner calculations
3936+
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
39333937
//#define M114_REALTIME // Real current position based on forward kinematics
39343938
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
39353939

@@ -3976,7 +3980,6 @@
39763980
* Spend 28 bytes of SRAM to optimize the G-code parser
39773981
*/
39783982
#define FASTER_GCODE_PARSER
3979-
39803983
#if ENABLED(FASTER_GCODE_PARSER)
39813984
//#define GCODE_QUOTED_STRINGS // Support for quoted string parameters
39823985
#endif

0 commit comments

Comments
 (0)