support for motor commands

This commit is contained in:
Peli de Halleux
2016-11-02 22:35:00 -07:00
parent 07b07a5a3f
commit 83bd1ed3e1
4 changed files with 97 additions and 9 deletions

18
libs/core/enums.d.ts vendored
View File

@ -240,6 +240,24 @@ declare namespace control {
}
declare namespace led {
}
declare enum MotorCommand {
//% block=coast
Coast = 0,
//% block=break
Break = 1,
//% block=sleep
Sleep = 2,
}
declare enum Motor {
A = 0,
B = 1,
//% block="A and B"
AB = 2,
}
declare namespace motors {
}