MagLev V4 probe by MDD (#23192)

This commit is contained in:
Ave6683
2021-12-27 22:28:27 +01:00
committed by Scott Lahteine
parent 4e72df9a28
commit d8c5e49281
6 changed files with 51 additions and 7 deletions

View File

@ -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);