available 0 to 5
request: init
path |
type |
conditions |
description |
pwmX.io |
pinSetting |
|
|
// Json Example
[
{
"pwm0": {
"io": 0
}
}
]
request: freq
path |
type |
conditions |
description |
pwmX.freq |
integer |
- required
- 1 ≤ value ≤ 80000000
|
frequency (Hz) |
// Json Example
[
{
"pwm0": {
"freq": 40000000
}
}
]
path |
type |
conditions |
description |
pwmX.pulse |
number |
|
pulse width (ms) |
// Json Example
[
{
"pwm0": {
"pulse": 500
}
}
]
path |
type |
conditions |
description |
pwmX.modulate.type |
string |
|
|
pwmX.modulate.symbol_length |
number |
- required
- 0.05 ≤ value ≤ 1000
|
symbol width (ms) |
pwmX.modulate.data |
bitArray |
|
|
// Json Example
[
{
"pwm0": {
"modulate": {
"type": "am",
"symbol_length": 500,
"data": [0, 1, 1, 0, 0, 1, 1, 0]
}
}
}
]
path |
type |
conditions |
description |
pwmX |
null |
|
|
// Json Example
[
{
"pwm0": null
}
]
type defines
type |
conditions |
examples |
description |
array |
|
[0, 1, 1, 0, 0, 1, 1, 0] [0, 0, 1, 0, 0, 0, 0, 0]
|
Binary data array represented in 0 1. |
type |
conditions |
examples |
description |
integer |
|
|
|