Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

stop_motors

Function stop_motors 

Source
pub fn stop_motors()
Expand description

Stop every motor now and return once a poll with the motors off has gone out on each port, so a program can pause, open a menu, or hand the port over knowing nothing is still spinning. Waits as lease does, three VBlanks at most; a port a Lease holds is not polled meanwhile. An unplugged pad has nothing to stop.