Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
StepperMotor
StepperMotor
Class StepperMotor
Hierarchy
StepperMotor
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
common
current
Step
frequency
ios
keys
milli
Meter
Step
Count
params
required
Keys
rotation
Step
Count
type
Methods
_get
Step
Instructions
current
Angle
current
Distance
current
Rotation
free
Wait
hold
Wait
move
ToWait
move
Wait
rotate
ToWait
rotate
Wait
speed
step
ToWait
step
Type
step
Wait
wired
info
Constructors
constructor
new
Stepper
Motor
(
)
:
StepperMotor
Returns
StepperMotor
Properties
common
common
:
any
current
Step
current
Step
:
number
= 0
frequency
frequency
:
number
= 100
ios
ios
:
PeripheralIO
[]
= []
keys
keys
:
string
[]
milli
Meter
Step
Count
milli
Meter
Step
Count
:
number
= 1
params
params
:
any
required
Keys
required
Keys
:
string
[]
rotation
Step
Count
rotation
Step
Count
:
number
= 100
Optional
type
type
:
undefined
|
string
Methods
_get
Step
Instructions
_get
Step
Instructions
(
)
:
number
[]
[]
Returns
number
[]
[]
current
Angle
current
Angle
(
)
:
number
Returns
number
current
Distance
current
Distance
(
)
:
number
Returns
number
current
Rotation
current
Rotation
(
)
:
number
Returns
number
free
Wait
free
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
hold
Wait
hold
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
move
ToWait
move
ToWait
(
destination
:
number
)
:
Promise
<
void
>
Parameters
destination:
number
Returns
Promise
<
void
>
move
Wait
move
Wait
(
distance
:
number
)
:
Promise
<
void
>
Parameters
distance:
number
Returns
Promise
<
void
>
rotate
ToWait
rotate
ToWait
(
angle
:
number
)
:
Promise
<
void
>
Parameters
angle:
number
Returns
Promise
<
void
>
rotate
Wait
rotate
Wait
(
rotation
:
number
)
:
Promise
<
void
>
Parameters
rotation:
number
Returns
Promise
<
void
>
speed
speed
(
step_per_sec
:
number
)
:
void
Parameters
step_per_sec:
number
Returns
void
step
ToWait
step
ToWait
(
destination
:
number
)
:
Promise
<
void
>
Parameters
destination:
number
Returns
Promise
<
void
>
step
Type
step
Type
(
stepType
:
StepType
)
:
void
Parameters
stepType:
StepType
Returns
void
step
Wait
step
Wait
(
step_count
:
number
)
:
Promise
<
void
>
Parameters
step_count:
number
Returns
Promise
<
void
>
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
Stepper
Motor
constructor
common
current
Step
frequency
ios
keys
milli
Meter
Step
Count
params
required
Keys
rotation
Step
Count
type
_get
Step
Instructions
current
Angle
current
Distance
current
Rotation
free
Wait
hold
Wait
move
ToWait
move
Wait
rotate
ToWait
rotate
Wait
speed
step
ToWait
step
Type
step
Wait
wired
info
Stepper
Motor
Options
Step
Type
Generated using
TypeDoc