Skip to content

Commit ea6388e

Browse files
committed
Update README.md
1 parent 7fc5b7f commit ea6388e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# deneyap-servo-arduino-library
22
Includes specific functions to drive servo motors by ESP32, ESP32-S2, ESP32-C3 and ESP32-S3 based development boards.
3+
4+
### SDK
5+
List fo Functions
6+
7+
```c++
8+
void attach(int pin, int channel, int freq, int resolution);
9+
void write(int value);
10+
```
11+
12+
### Example
13+
This is an example.
14+
15+
```c++
16+
#include <Deneyap_Servo.h>
17+
18+
Servo myservo;
19+
20+
void setup() {
21+
myservo.attach(D9);
22+
}
23+
24+
void loop() {
25+
myservo.write(60);
26+
}
27+
```
28+
## :bookmark_tabs:License Information
29+
Please review the [LICENSE](https://github.com/deneyapkart/deneyap-servo-arduino-library/blob/master/LICENSE) file for license information.

0 commit comments

Comments
 (0)