✨ MagLev V4 probe by MDD (#23192)
This commit is contained in:
@ -121,6 +121,17 @@ xyz_pos_t Probe::offset; // Initialized by settings.load()
|
||||
#endif
|
||||
}
|
||||
|
||||
#elif ENABLED(MAGLEV4)
|
||||
|
||||
// Write trigger pin to release the probe
|
||||
inline void maglev_deploy() {
|
||||
WRITE(MAGLEV_TRIGGER_PIN, HIGH);
|
||||
delay(MAGLEV_TRIGGER_DELAY);
|
||||
WRITE(MAGLEV_TRIGGER_PIN, LOW);
|
||||
}
|
||||
|
||||
inline void maglev_idle() { do_blocking_move_to_z(10); }
|
||||
|
||||
#elif ENABLED(TOUCH_MI_PROBE)
|
||||
|
||||
// Move to the magnet to unlock the probe
|
||||
@ -311,6 +322,10 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
|
||||
WRITE(SOL1_PIN, deploy);
|
||||
#endif
|
||||
|
||||
#elif ENABLED(MAGLEV4)
|
||||
|
||||
deploy ? maglev_deploy() : maglev_idle();
|
||||
|
||||
#elif ENABLED(Z_PROBE_SLED)
|
||||
|
||||
dock_sled(!deploy);
|
||||
|
Reference in New Issue
Block a user