Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
4764e2c
[cron] Bump distribution date (2020-12-21)
thinkyhead Dec 21, 2020
71bec08
Get E3V2 DWIN `MACHINE_SIZE` from config (#20526)
streef Dec 21, 2020
7afd274
Apply HOME_AFTER_DEACTIVATE for 'G28 O' (#20525)
streef Dec 21, 2020
c7ecfe2
Clean up some pins
thinkyhead Dec 21, 2020
3ec59b3
Add BTT SKR CR6 board (#20522)
Sebazzz Dec 20, 2020
0d95f67
Fix G34 compile with bed leveling disabled (#20537)
Dec 21, 2020
ba16c53
Fix some Russian (#20529)
LinFor Dec 21, 2020
6429be6
Robin pins followup
thinkyhead Dec 13, 2020
34b6bca
Tweak FTDI spacing
thinkyhead Dec 21, 2020
9b3e16c
Add Tune -> Advanced Settings to FTDI EVE (#20532)
LinFor Dec 22, 2020
ba11761
[cron] Bump distribution date (2020-12-22)
thinkyhead Dec 22, 2020
36aff1e
12-bit ADC resolution for STM32 (#20519)
LinFor Dec 22, 2020
82540be
FTDI EVE custom user menus (#20518)
LinFor Dec 22, 2020
094e822
Improve STM32 timer conflict messages (#20544)
sjasonsmith Dec 22, 2020
c1b900a
Fix UBL mesh inset Z position (#20538)
p3p Dec 22, 2020
5e3be83
Overrides to prevent STM32 timer conflicts (#20545)
sjasonsmith Dec 22, 2020
91730d7
Improve Touch Calibration screen (#20524)
X-Ryl669 Dec 22, 2020
08dcd1f
Creality v4.3.1 (Ender 6) board (#20512)
smcgroty Dec 22, 2020
a0c8d34
Anet ET4 / ET4P and Anet TFT28 / TFT35 (#20280)
thisiskeithb Dec 22, 2020
0b3b4da
STM32F1xx support for TFTGLCD (#20515)
Serhiy-K Dec 22, 2020
cfad5cb
Unify FYSETC F6 1.3 / 1.4 (#20507)
rhapsodyv Dec 22, 2020
c559fc8
Fix G28 leveling state, UBL compile (#20499)
tpruvot Dec 22, 2020
de9c0ed
Support RGBW on PCA9632 (#20455)
spamik Dec 22, 2020
56fac55
[cron] Bump distribution date (2020-12-23)
thinkyhead Dec 23, 2020
c87c354
Refactor 'Level Corners with Probe' (#20460)
wmariz Dec 23, 2020
6ec4e74
Improve plan_arc circle detection (#20440)
yysh12 Dec 23, 2020
6af6a35
FTDI EVE: Cyrillic font, some minor fixes (#20517)
LinFor Dec 23, 2020
34d9cb6
Enhanced Italian language (#20551)
BsCmOD Dec 23, 2020
2be027f
Probe Activation Switch followup (#20550)
Sebazzz Dec 23, 2020
2844086
Support ANET_FULL_GRAPHICS_LCD_ALT_WIRING on BTT SKR 1.4 (#20427)
bizzehdee Dec 23, 2020
59de35e
Apply ENABLED in ExiUI / FTDI
thinkyhead Dec 23, 2020
2d88a2c
Remaining Time for FTDI EVE, bp for ExtUI (#20549)
LinFor Dec 23, 2020
844a8c7
Add OPTIMIZED_MESH_STORAGE option (for UBL) (#20371)
ubik2 Dec 24, 2020
9a60f7a
[cron] Bump distribution date (2020-12-24)
thinkyhead Dec 24, 2020
f8c6de0
Move BTT_SKR_CR6
thinkyhead Dec 24, 2020
4d6b6bc
LVGL and Classic UI for STM32 (#20552)
rhapsodyv Dec 24, 2020
f0c29af
Add "End Repeat Loops" menu item
thinkyhead Dec 24, 2020
e6c15ee
Fix DOGM status message scrolling (#20557)
rhapsodyv Dec 24, 2020
57e94fb
Fix ST7920 timing for Rumba32, Fysetc S6 (#20556)
sjasonsmith Dec 24, 2020
2007324
Fix, clean up FTDI EVE Touch UI (#20466)
thinkyhead Dec 24, 2020
820cc69
Apply NO_MOTION_BEFORE_HOMING to joystick motion (#20462)
violetbp Dec 24, 2020
1fc0dcd
Cutter Power in percent format (#20410)
descipher Dec 24, 2020
4b860f1
[cron] Bump distribution date (2020-12-25)
thinkyhead Dec 25, 2020
e2480d4
[cron] Bump distribution date (2020-12-26)
thinkyhead Dec 26, 2020
331ca6a
[cron] Bump distribution date (2020-12-27)
thinkyhead Dec 27, 2020
7194048
Fix SPINDLE_LASER_FREQUENCY (#20509)
Ashammaru Dec 27, 2020
198b3ae
Fix some comments
thinkyhead Dec 27, 2020
d00c899
Remove CREALITY_TOUCH
thinkyhead Dec 27, 2020
f423edd
Add probe_switch_activated
thinkyhead Dec 27, 2020
45996fd
Init tare pin once
thinkyhead Dec 27, 2020
31af49e
[cron] Bump distribution date (2020-12-28)
thinkyhead Dec 28, 2020
81d7bd8
Validate defined probe points (#20572)
sjasonsmith Dec 28, 2020
e83b7ed
General cleanup
thinkyhead Dec 24, 2020
84a1fff
Allow define HOMING_FEEDRATE_(XY|Z)
thinkyhead Dec 28, 2020
91c350e
Remove URL scheme
thinkyhead Dec 28, 2020
cfcfc80
Small / Large Boot Screen option for TFT_COLOR_UI (#20578)
thisiskeithb Dec 28, 2020
2ce9fa4
Better defaults, compatibility for SDIO + STM32 (#20570)
rhapsodyv Dec 28, 2020
185e31d
Fix Menu Mixer for Color UI (#20566)
rhapsodyv Dec 28, 2020
28a3d95
Use ADC_RESOLUTION 12 for all STM32 (#20562)
rhapsodyv Dec 28, 2020
9eaa698
Fix LVGL_UI G-code preview (#20564)
rhapsodyv Dec 28, 2020
a3fac74
Fix Change Filament menu actions (#20565)
rhapsodyv Dec 28, 2020
a8c361c
Menu item index followup
thinkyhead Dec 28, 2020
aa4119a
[cron] Bump distribution date (2020-12-29)
thinkyhead Dec 29, 2020
aff4fcc
Apply SHOW_BOOTSCREEN to TFT_COLOR_UI (#20586)
thisiskeithb Dec 29, 2020
90a2b48
LVGL G-code preview. Legacy MKS WiFi Cura plugin compatibility (#20589)
rhapsodyv Dec 29, 2020
624bf10
Clarify sanity-check for custom status bitmap (#20588)
tpruvot Dec 29, 2020
d6a56b8
Pins, comment cleanup
thinkyhead Dec 29, 2020
84ab088
USB FD via native USB Host + MSC (#20571)
rhapsodyv Dec 29, 2020
41e4124
Support 4.3" (480x272) Color UI display (#20334)
rhapsodyv Dec 29, 2020
4ad633b
[cron] Bump distribution date (2020-12-30)
thinkyhead Dec 30, 2020
811b5f8
[cron] Bump distribution date (2020-12-31)
thinkyhead Dec 31, 2020
a9d18f0
SPI and pins cleanup
thinkyhead Dec 31, 2020
b530db9
[cron] Bump distribution date (2021-01-01)
thinkyhead Jan 1, 2021
c840bbc
Prefix SD SPI pins (SCK, MISO, MOSI, SS) (#20606)
rhapsodyv Jan 1, 2021
815c636
Fix PARKING_EXTRUDER homing with solenoid (#20473)
zeleps Jan 1, 2021
4402a05
Fix CHAMBER_FAN_MODE 0 build (#20621)
sjasonsmith Jan 1, 2021
b9d9e74
[cron] Bump distribution date (2021-01-02)
thinkyhead Jan 2, 2021
9f53738
Fix UBL mesh edit delta moves (#20620)
sjasonsmith Jan 2, 2021
5eaa10e
Fix //action prefix (#20600)
ellensp Jan 2, 2021
e685950
Assisted Tramming improvements (#20298)
qwewer0 Jan 2, 2021
b0585e1
Check for misplaced configs on build (#20599)
ellensp Jan 2, 2021
5b33afb
Fix a comment (#20629)
qwewer0 Jan 2, 2021
a87e519
Document, adjust some homing code
thinkyhead Dec 31, 2020
3efbd45
Improved bootscreen animation
thinkyhead Jan 2, 2021
f86765a
[cron] Bump distribution date (2021-01-03)
thinkyhead Jan 3, 2021
56a5d0b
Homing code followup (#20632)
ellensp Jan 3, 2021
87d3264
Animated boot followup
thinkyhead Jan 3, 2021
1d63fe6
Add ALL_AXES manual move for UBL mesh editing
thinkyhead Jan 3, 2021
edea49f
Creality 4.2.10 board (#20647)
thinkyhead Jan 3, 2021
3ba80d1
Update Italian language (#20663)
GMagician Jan 3, 2021
effc373
[cron] Bump distribution date (2021-01-04)
thinkyhead Jan 4, 2021
2d88bcb
Fix thermal error protection, reporting (#20655)
marciot Jan 4, 2021
63448f3
Rename FTDI EVE screen data structs
thinkyhead Jan 4, 2021
6b45867
Fix SD SPI Speed override, FTDI mesh edit (#20657)
InsanityAutomation Jan 4, 2021
548d560
Fix IDEX reboot on travel after G28 X (#20654)
InsanityAutomation Jan 4, 2021
ca47dff
Fix delayed_move_time elapsed test
thinkyhead Jan 4, 2021
ba2cadb
Move duplication_e_mask
thinkyhead Jan 4, 2021
208200a
G34/M422 cleanup
thinkyhead Jan 4, 2021
21c7e69
Remove untranslated strings
thinkyhead Jan 5, 2021
7033003
[cron] Bump distribution date (2021-01-05)
thinkyhead Jan 5, 2021
3a99d00
Solenoid cleanups
thinkyhead Jan 5, 2021
55d1938
Defer "quiet probing" till the last Z bump (#20610)
FanDjango Jan 5, 2021
c0a3931
Clarify solenoid active / magnet-on state
thinkyhead Jan 5, 2021
d2e1e9a
Indent tool_change_prime
thinkyhead Jan 5, 2021
2f17f22
Don't apply hotend_offset.z to Z soft endstops (#20675)
zeleps Jan 5, 2021
dc3cfd0
Adjustable precision in M105 temperature report (#20602)
FanDjango Jan 5, 2021
1eb5925
Temperature report followup (#20687)
GMagician Jan 5, 2021
e9ab6c1
No BTN_ENC_EN on Anet 10 (#20684)
ellensp Jan 5, 2021
87fbda8
Define SANGUINOLOLU 1.1 enable pins (#20682)
ellensp Jan 5, 2021
218de57
Fix Azteeg X3 macro typo (#20681)
ellensp Jan 5, 2021
e3831c1
Multi-Z stepper inverting (#20678)
wilbur4321 Jan 5, 2021
d2969d2
[cron] Bump distribution date (2021-01-06)
thinkyhead Jan 6, 2021
3dd1fe4
Custom build_flags by feature (#20692)
thinkyhead Jan 6, 2021
abea8ff
[cron] Bump distribution date (2021-01-07)
thinkyhead Jan 7, 2021
8edcf03
Preheat before Power Loss Recovery homing (#20697)
Jan 7, 2021
3009707
Improved MKS Robin support (#19333)
robindubreuil Jan 7, 2021
4eedeab
Fix M48 output (#20713)
qwewer0 Jan 7, 2021
4e8d92b
[cron] Bump distribution date (2021-01-08)
thinkyhead Jan 8, 2021
8e1637a
[cron] Bump distribution date (2021-01-09)
thinkyhead Jan 9, 2021
d4ac8bc
Up to 6 Tramming points (#20720)
Links2004 Jan 9, 2021
8ffae97
Fix Python 2.7 compatibility
thinkyhead Jan 9, 2021
bbf0615
Fix misc. warnings (#20715)
dmak Jan 9, 2021
299f849
Optimize some G76 strings
thinkyhead Jan 2, 2021
46916d3
[cron] Bump distribution date (2021-01-10)
thinkyhead Jan 10, 2021
d78f292
Wanhao One+ SD detect pin (#20724)
antman2 Jan 10, 2021
cf1f8af
Laser Test Fire (#20452)
descipher Jan 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Extended AVR Environments

- FYSETC_F6_13
- FYSETC_F6
- mega1280
- rambo
- sanguino1284p
Expand Down
28 changes: 12 additions & 16 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,6 @@
*/
//#define BLTOUCH

/**
* Pressure sensor with a BLTouch-like interface
*/
//#define CREALITY_TOUCH

/**
* Touch-MI Probe by hotends.fr
*
Expand Down Expand Up @@ -1094,7 +1089,7 @@
//#define PROBING_STEPPERS_OFF // Turn steppers off (unless needed to hold position) when probing
//#define DELAY_BEFORE_PROBING 200 // (ms) To prevent vibrations from triggering piezo sensors

// Require minimum nozzle and/or bed temperature for probing.
// Require minimum nozzle and/or bed temperature for probing
//#define PREHEAT_BEFORE_PROBING
#if ENABLED(PREHEAT_BEFORE_PROBING)
#define PROBING_NOZZLE_TEMP 120 // (°C) Only applies to E0 at this time
Expand Down Expand Up @@ -1828,16 +1823,6 @@
*/
//#define SDSUPPORT

/**
* SD CARD: SPI SPEED
*
* Enable one of the following items for a slower SPI transfer speed.
* This may be required to resolve "volume init" errors.
*/
//#define SPI_SPEED SPI_HALF_SPEED
//#define SPI_SPEED SPI_QUARTER_SPEED
//#define SPI_SPEED SPI_EIGHTH_SPEED

/**
* SD CARD: ENABLE CRC
*
Expand Down Expand Up @@ -2368,6 +2353,16 @@
//
//#define LONGER_LK_TFT28

//
// 320x240, 2.8", FSMC Stock Display from ET4
//
//#define ANET_ET4_TFT28

//
// 480x320, 3.5", FSMC Stock Display from ET5
//
//#define ANET_ET5_TFT35

//
// Generic TFT with detailed options
//
Expand Down Expand Up @@ -2433,6 +2428,7 @@
//#define TOUCH_CALIBRATION_Y -8981
//#define TOUCH_OFFSET_X -43
//#define TOUCH_OFFSET_Y 257
//#define TOUCH_ORIENTATION TOUCH_LANDSCAPE

#if ENABLED(TFT_COLOR_UI)
//#define SINGLE_TOUCH_NAVIGATION
Expand Down
88 changes: 63 additions & 25 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@

//#define X_DUAL_STEPPER_DRIVERS
#if ENABLED(X_DUAL_STEPPER_DRIVERS)
#define INVERT_X2_VS_X_DIR true // Set 'true' if X motors should rotate in opposite directions
//#define INVERT_X2_VS_X_DIR // Enable if X2 direction signal is opposite to X
//#define X_DUAL_ENDSTOPS
#if ENABLED(X_DUAL_ENDSTOPS)
#define X2_USE_ENDSTOP _XMAX_
Expand All @@ -562,7 +562,7 @@

//#define Y_DUAL_STEPPER_DRIVERS
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
#define INVERT_Y2_VS_Y_DIR true // Set 'true' if Y motors should rotate in opposite directions
//#define INVERT_Y2_VS_Y_DIR // Enable if Y2 direction signal is opposite to Y
//#define Y_DUAL_ENDSTOPS
#if ENABLED(Y_DUAL_ENDSTOPS)
#define Y2_USE_ENDSTOP _YMAX_
Expand All @@ -576,6 +576,11 @@
#define NUM_Z_STEPPER_DRIVERS 1 // (1-4) Z options change based on how many

#if NUM_Z_STEPPER_DRIVERS > 1
// Enable if Z motor direction signals are the opposite of Z1
//#define INVERT_Z2_VS_Z_DIR
//#define INVERT_Z3_VS_Z_DIR
//#define INVERT_Z4_VS_Z_DIR

//#define Z_MULTI_ENDSTOPS
#if ENABLED(Z_MULTI_ENDSTOPS)
#define Z2_USE_ENDSTOP _XMAX_
Expand Down Expand Up @@ -801,10 +806,10 @@
//#define ASSISTED_TRAMMING
#if ENABLED(ASSISTED_TRAMMING)

// Define positions for probing points, use the hotend as reference not the sensor.
#define TRAMMING_POINT_XY { { 20, 20 }, { 200, 20 }, { 200, 200 }, { 20, 200 } }
// Define positions for probe points.
#define TRAMMING_POINT_XY { { 20, 20 }, { 180, 20 }, { 180, 180 }, { 20, 180 } }

// Define positions names for probing points.
// Define position names for probe points.
#define TRAMMING_POINT_NAME_1 "Front-Left"
#define TRAMMING_POINT_NAME_2 "Front-Right"
#define TRAMMING_POINT_NAME_3 "Back-Right"
Expand All @@ -813,8 +818,8 @@
#define RESTORE_LEVELING_AFTER_G35 // Enable to restore leveling setup after operation
//#define REPORT_TRAMMING_MM // Report Z deviation (mm) for each point relative to the first

//#define ASSISTED_TRAMMING_MENU_ITEM // Add a menu item to run G35 Assisted Tramming (MarlinUI)
//#define ASSISTED_TRAMMING_WIZARD // Make the menu item open a Tramming Wizard sub-menu
//#define ASSISTED_TRAMMING_WIZARD // Add a Tramming Wizard to the LCD menu

//#define ASSISTED_TRAMMING_WAIT_POSITION { X_CENTER, Y_CENTER, 30 } // Move the nozzle out of the way for adjustment

/**
Expand Down Expand Up @@ -1134,33 +1139,38 @@

#endif // HAS_LCD_MENU

// Scroll a longer status message into view
//#define STATUS_MESSAGE_SCROLLING
#if HAS_DISPLAY
// The timeout (in ms) to return to the status screen from sub-menus
//#define LCD_TIMEOUT_TO_STATUS 15000

// On the Info Screen, display XY with one decimal place when possible
//#define LCD_DECIMAL_SMALL_XY
#if ENABLED(SHOW_BOOTSCREEN)
#define BOOTSCREEN_TIMEOUT 4000 // (ms) Total Duration to display the boot screen(s)
#if EITHER(HAS_MARLINUI_U8GLIB, TFT_COLOR_UI)
#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving lots of flash)
#endif
#endif

// The timeout (in ms) to return to the status screen from sub-menus
//#define LCD_TIMEOUT_TO_STATUS 15000
// Scroll a longer status message into view
//#define STATUS_MESSAGE_SCROLLING

// Add an 'M73' G-code to set the current percentage
//#define LCD_SET_PROGRESS_MANUALLY
// On the Info Screen, display XY with one decimal place when possible
//#define LCD_DECIMAL_SMALL_XY

// Show the E position (filament used) during printing
//#define LCD_SHOW_E_TOTAL
// Add an 'M73' G-code to set the current percentage
//#define LCD_SET_PROGRESS_MANUALLY

#if ENABLED(SHOW_BOOTSCREEN)
#define BOOTSCREEN_TIMEOUT 4000 // (ms) Total Duration to display the boot screen(s)
// Show the E position (filament used) during printing
//#define LCD_SHOW_E_TOTAL
#endif

#if EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY) && ANY(HAS_MARLINUI_U8GLIB, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
#if EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY) && ANY(HAS_MARLINUI_U8GLIB, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL, EXTENSIBLE_UI)
//#define SHOW_REMAINING_TIME // Display estimated time to completion
#if ENABLED(SHOW_REMAINING_TIME)
//#define USE_M73_REMAINING_TIME // Use remaining time from M73 command instead of estimation
//#define ROTATE_PROGRESS_DISPLAY // Display (P)rogress, (E)lapsed, and (R)emaining time
#endif

#if HAS_MARLINUI_U8GLIB
#if EITHER(HAS_MARLINUI_U8GLIB, EXTENSIBLE_UI)
//#define PRINT_PROGRESS_SHOW_DECIMALS // Show progress with decimal digits
#endif

Expand All @@ -1177,6 +1187,16 @@
#endif

#if ENABLED(SDSUPPORT)
/**
* SD Card SPI Speed
* May be required to resolve "volume init" errors.
*
* Enable and set to SPI_HALF_SPEED, SPI_QUARTER_SPEED, or SPI_EIGHTH_SPEED
* otherwise full speed will be applied.
*
* :['SPI_HALF_SPEED', 'SPI_QUARTER_SPEED', 'SPI_EIGHTH_SPEED']
*/
//#define SD_SPI_SPEED SPI_HALF_SPEED

// The standard SD detect circuit reads LOW when media is inserted and HIGH when empty.
// Enable this option and set to HIGH if your SD cards are incorrectly detected.
Expand Down Expand Up @@ -1321,9 +1341,6 @@
*/
//#define USB_FLASH_DRIVE_SUPPORT
#if ENABLED(USB_FLASH_DRIVE_SUPPORT)
#define USB_CS_PIN SDSS
#define USB_INTR_PIN SD_DETECT_PIN

/**
* USB Host Shield Library
*
Expand All @@ -1334,7 +1351,18 @@
* is less tested and is known to interfere with Servos.
* [1] This requires USB_INTR_PIN to be interrupt-capable.
*/
//#define USE_UHS2_USB
//#define USE_UHS3_USB

/**
* Native USB Host supported by some boards (USB OTG)
*/
//#define USE_OTG_USB_HOST

#if DISABLED(USE_OTG_USB_HOST)
#define USB_CS_PIN SDSS
#define USB_INTR_PIN SD_DETECT_PIN
#endif
#endif

/**
Expand Down Expand Up @@ -1448,7 +1476,6 @@
//#define STATUS_ALT_FAN_BITMAP // Use the alternative fan bitmap
//#define STATUS_FAN_FRAMES 3 // :[0,1,2,3,4] Number of fan animation frames
//#define STATUS_HEAT_PERCENT // Show heating in a progress bar
//#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving 399 bytes of flash)
//#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~‭3260 (or ~940) bytes of PROGMEM.

// Frivolous Game Options
Expand Down Expand Up @@ -1563,6 +1590,9 @@
//#define TOUCH_UI_UTF8_FRACTIONS // ¼ ½ ¾
//#define TOUCH_UI_UTF8_SYMBOLS // µ ¶ ¦ § ¬
#endif

// Cyrillic character set, costs about 27KiB of flash
//#define TOUCH_UI_UTF8_CYRILLIC_CHARSET
#endif

// Use a smaller font when labels don't fit buttons
Expand Down Expand Up @@ -1734,6 +1764,10 @@
//#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
#endif

#if BOTH(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS)
//#define OPTIMIZED_MESH_STORAGE // Store mesh with less precision to save EEPROM space
#endif

/**
* Repeatedly attempt G29 leveling until it succeeds.
* Stop after G29_MAX_RETRIES attempts.
Expand Down Expand Up @@ -3021,6 +3055,10 @@
#define SPEED_POWER_MAX 100 // (%) 0-100
#define SPEED_POWER_STARTUP 80 // (%) M3/M4 speed/power default (with no arguments)

// Define the minimum and maximum test pulse time values for a laser test fire function
#define LASER_TEST_PULSE_MIN 1 // Used with Laser Control Menu
#define LASER_TEST_PULSE_MAX 999 // Caution: Menu may not show more than 3 characters

/**
* Enable inline laser power to be handled in the planner / stepper routines.
* Inline power is specified by the I (inline) flag in an M3 command (e.g., M3 S20 I)
Expand Down
4 changes: 2 additions & 2 deletions Marlin/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* has a distinct Github fork— the Source Code URL should just be the main
* Marlin repository.
*/
//#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
//#define SOURCE_CODE_URL "github.com/MarlinFirmware/Marlin"

/**
* Default generic printer UUID.
Expand All @@ -65,7 +65,7 @@
* The WEBSITE_URL is the location where users can get more information such as
* documentation about a specific Marlin release.
*/
//#define WEBSITE_URL "https://marlinfw.org"
//#define WEBSITE_URL "marlinfw.org"

/**
* Set the vendor info the serial USB interface, if changable
Expand Down
28 changes: 14 additions & 14 deletions Marlin/src/HAL/AVR/HAL_SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
#include "../../inc/MarlinConfig.h"

void spiBegin() {
OUT_WRITE(SS_PIN, HIGH);
SET_OUTPUT(SCK_PIN);
SET_INPUT(MISO_PIN);
SET_OUTPUT(MOSI_PIN);
OUT_WRITE(SD_SS_PIN, HIGH);
SET_OUTPUT(SD_SCK_PIN);
SET_INPUT(SD_MISO_PIN);
SET_OUTPUT(SD_MOSI_PIN);

#if DISABLED(SOFTWARE_SPI)
// SS must be in output mode even it is not chip select
//SET_OUTPUT(SS_PIN);
//SET_OUTPUT(SD_SS_PIN);
// set SS high - may be chip select for another SPI device
//#if SET_SPI_SS_HIGH
//WRITE(SS_PIN, HIGH);
//WRITE(SD_SS_PIN, HIGH);
//#endif
// set a default rate
spiInit(1);
Expand Down Expand Up @@ -195,19 +195,19 @@ void spiBegin() {
// no interrupts during byte receive - about 8µs
cli();
// output pin high - like sending 0xFF
WRITE(MOSI_PIN, HIGH);
WRITE(SD_MOSI_PIN, HIGH);

LOOP_L_N(i, 8) {
WRITE(SCK_PIN, HIGH);
WRITE(SD_SCK_PIN, HIGH);

nop; // adjust so SCK is nice
nop;

data <<= 1;

if (READ(MISO_PIN)) data |= 1;
if (READ(SD_MISO_PIN)) data |= 1;

WRITE(SCK_PIN, LOW);
WRITE(SD_SCK_PIN, LOW);
}

sei();
Expand All @@ -225,18 +225,18 @@ void spiBegin() {
// no interrupts during byte send - about 8µs
cli();
LOOP_L_N(i, 8) {
WRITE(SCK_PIN, LOW);
WRITE(MOSI_PIN, data & 0x80);
WRITE(SD_SCK_PIN, LOW);
WRITE(SD_MOSI_PIN, data & 0x80);
data <<= 1;
WRITE(SCK_PIN, HIGH);
WRITE(SD_SCK_PIN, HIGH);
}

nop; // hold SCK high for a few ns
nop;
nop;
nop;

WRITE(SCK_PIN, LOW);
WRITE(SD_SCK_PIN, LOW);

sei();
}
Expand Down
16 changes: 8 additions & 8 deletions Marlin/src/HAL/AVR/spi_pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
#define AVR_SS_PIN 16
#endif

#ifndef SCK_PIN
#define SCK_PIN AVR_SCK_PIN
#ifndef SD_SCK_PIN
#define SD_SCK_PIN AVR_SCK_PIN
#endif
#ifndef MISO_PIN
#define MISO_PIN AVR_MISO_PIN
#ifndef SD_MISO_PIN
#define SD_MISO_PIN AVR_MISO_PIN
#endif
#ifndef MOSI_PIN
#define MOSI_PIN AVR_MOSI_PIN
#ifndef SD_MOSI_PIN
#define SD_MOSI_PIN AVR_MOSI_PIN
#endif
#ifndef SS_PIN
#define SS_PIN AVR_SS_PIN
#ifndef SD_SS_PIN
#define SD_SS_PIN AVR_SS_PIN
#endif
Loading