vibra - Vibration Motor¶
Turn on the vibration motor for a certain duration.
import vibra # Turn on vibration motor for 60 ms vibra.vibrate(60)
millis (int) – Duration for the vibration motor to be on.
Permanently set the state of the vibration motor to either on or off.
If your code for some reason crashes between turning the motor on and back off again, the motor will continue running. Consider using
state (bool) –
Trueto turn on,
Falseto turn the motor off.