Methods
-
acceleratemotors(value_startspeed, value_endspeed, value_duration)
-
Accelerates the Wink motors from the start speed, to the end speed, over the duration time.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description value_startspeed
accepts values from 0-255. Determines the speed the Wink motors will start at.
value_endspeed
accepts values from 0-255. Determines the speed the Wink motors will end at.
value_duration
how long it will take the Wink bot to go from the start speed to the end speed.
Code Equivalent:
accelerateMotors(value_startspeed, value_endspeed, value_duration);
-
bestill()
-
Stops the Wink motors.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
beStill();
-
motors(value_leftspeed, value_rightspeed)
-
Sets the Wink motors to the given speeds.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description value_leftspeed
the speed the left motor will be
value_rightspeed
the speed the right motor will be
Code Equivalent:
motors(value_leftspeed, value_rightspeed);
-
spinleft(value_speed)
-
Spins the Wink Bot left at the given speed. It will spin indefinitely until the program tells it otherwise or the Wink is turned off.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description value_speed
the speed to spin at. Accepts values from 0-255
Code Equivalent:
spinLeft(value_speed);
-
spinright(value_speed)
-
Spins the Wink Bot right at the given speed. It will spin indefinitely until the program tells it otherwise or the Wink is turned off.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description value_speed
the speed to spin at. Accepts values from 0-255
Code Equivalent:
spinRight(value_speed);
-
turn_by_values(dropdown_direction, number_speed, number_duration)
-
Turns the Wink bot in the given direction, at the given speed, for the given amount of time. The motors will be still after delay runs out.
This block merely automatically places spinDirection, delay, and beStill blocks. It chooses spinLeft or spinRight based on the dropdown selected.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description dropdown_direction
determines the spin direction
number_speed
the speed to spin at. Accepts values from 0-255.
number_duration
how long to spin for
Code Equivalent:
spinLeft(number_speed); delay(number_duration); beStill(); OR spinRight(number_speed); delay(number_duration); beStill();