Emergency locks the Farmduino microcontroller, preventing motor and peripheral usage. Some features, such as
send_message, are still available while emergency locked.
-- Lock the device: emergency_lock()
Unlock a previously locked device.
-- Unlock the device: emergency_unlock()
This is an advanced feature that is intended to be used in conjunction with
soft_stop will cancel all current and pending movement requests. Unlike
emergency_lock, it will not lock the device nor will it reset the state of peripherals. Commands (including movement commands) will continue normally after a soft stop occurs. This function can be used to pause FarmBot temporarily if a peripheral value changes mid-movement.