... | ... | @@ -203,3 +203,28 @@ While(1) { |
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
<table>
|
|
|
<tr>
|
|
|
<th>Configure duty cycle with setDuty function</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
|
|
|
```
|
|
|
While(1) {
|
|
|
hwConfig.setDuty(0.8);
|
|
|
k_msleep(1500);
|
|
|
hwConfig.setDuty(0.5);
|
|
|
k_msleep(1500);
|
|
|
}
|
|
|
```
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
|
|
|
![index](uploads/c70a2d80b7779a86183ba9e5e86af4bc/index.html)
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|