Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Crickit Stop Motor doesn't seem to work in makecode?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Crickit Stop Motor doesn't seem to work in makecode?

by Andydoania on Sun Jul 15, 2018 6:36 pm

Trying to have a button event trigger the motors to stop on a crickit and circuit playground.

Trying to run the following.
input.buttonB.onEvent(ButtonEvent.Down, function () {
light.showRing(
`blue blue blue blue blue blue blue blue blue blue`
)
crickit.servo1.setAngle(163)
crickit.motor1.stop()
crickit.motor2.stop()
})

no luck. Any help?

Andydoania
 
Posts: 2
Joined: Wed Mar 21, 2018 11:53 am

Re: Crickit Stop Motor doesn't seem to work in makecode?

by burrman on Fri Jul 20, 2018 1:51 pm

Try using
ButtonEvent.Click

My experience .down events are subject to bouncing

Good luck

burrman
 
Posts: 12
Joined: Thu Apr 28, 2011 6:11 pm

Please be positive and constructive with your questions and comments.