You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
“AmebaServo.h” must be included to use the class function.
155
+
.. note :: “AmebaServo.h” must be included to use the class function.
162
156
163
157
**AmebaServo::writeMicroseconds**
164
158
---------------------------------
@@ -171,14 +165,16 @@ Write a value to control servo. The value is between 544 - 2400us that represent
171
165
**Syntax**
172
166
~~~~~~~~~~
173
167
174
-
```
175
-
void writeMicroseconds(int value);
176
-
```
168
+
.. code-block:: c++
169
+
170
+
void writeMicroseconds(int value);
177
171
178
172
**Parameters**
179
173
~~~~~~~~~~~~~~
180
174
181
-
value: An integer value that should be between 544 - 2400us as pulse width. If the value is < 544us, it will be taken as 544us and if the value > 2400us, it will be taken as 2400us.
175
+
value: An integer value (us) as pulse width.
176
+
177
+
- 544 to 2400 (If the value is < 544, it will be taken as 544 and if the value > 2400, it will be taken as 2400)
182
178
183
179
**Returns**
184
180
~~~~~~~~~~~
@@ -190,10 +186,7 @@ NA
190
186
191
187
NA
192
188
193
-
**Notes and Warnings**
194
-
~~~~~~~~~~~~~~~~~~~~~~
195
-
196
-
“AmebaServo.h” must be included to use the class function.
189
+
.. note :: “AmebaServo.h” must be included to use the class function.
197
190
198
191
**AmebaServo::read**
199
192
--------------------
@@ -206,9 +199,9 @@ The function reads the value from servo and returns current pulse width as an an
206
199
**Syntax**
207
200
~~~~~~~~~~
208
201
209
-
```
210
-
int read(void);
211
-
```
202
+
.. code-block:: c++
203
+
204
+
int read(void);
212
205
213
206
**Parameters**
214
207
~~~~~~~~~~~~~~
@@ -225,10 +218,7 @@ This function returns integer value that represents pulse width between 0 - 180
225
218
226
219
NA
227
220
228
-
**Notes and Warnings**
229
-
~~~~~~~~~~~~~~~~~~~~~~
230
-
231
-
“AmebaServo.h” must be included to use the class function.
221
+
.. note :: “AmebaServo.h” must be included to use the class function.
232
222
233
223
**AmebaServo::readMicroseconds**
234
224
--------------------------------
@@ -241,9 +231,9 @@ The function reads and returns the pulse width of the current servo in microseco
241
231
**Syntax**
242
232
~~~~~~~~~~
243
233
244
-
```
245
-
int readMicroseconds(void);
246
-
```
234
+
.. code-block:: c++
235
+
236
+
int readMicroseconds(void);
247
237
248
238
**Parameters**
249
239
~~~~~~~~~~~~~~
@@ -260,10 +250,7 @@ This function returns an integer value that represents pulse width in microsecon
260
250
261
251
NA
262
252
263
-
**Notes and Warnings**
264
-
~~~~~~~~~~~~~~~~~~~~~~
265
-
266
-
“AmebaServo.h” must be included to use the class function.
253
+
.. note :: “AmebaServo.h” must be included to use the class function.
267
254
268
255
**AmebaServo::attached**
269
256
------------------------
@@ -276,9 +263,9 @@ Check if the servo PWM pin is attached successfully.
276
263
**Syntax**
277
264
~~~~~~~~~~
278
265
279
-
```
280
-
bool attached(void);
281
-
```
266
+
.. code-block:: c++
267
+
268
+
bool attached(void);
282
269
283
270
**Parameters**
284
271
~~~~~~~~~~~~~~
@@ -292,8 +279,6 @@ This function returns 1 if the servo has been attached, else it returns 0.
0 commit comments