File size: 949 Bytes
6ce4ca6
 
f62f94b
 
6ce4ca6
 
f62f94b
6ce4ca6
 
 
 
 
 
 
f62f94b
 
6ce4ca6
f62f94b
 
 
6ce4ca6
f62f94b
 
6ce4ca6
 
 
f62f94b
 
 
 
 
6ce4ca6
 
f62f94b
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# feetech.js

> [bambot.org/feetech.js](https://bambot.org/feetech.js)

Control feetech servos through browser

## Quick start

```bash
# Install the package
npm install feetech.js
```

```javascript
import { ScsServoSDK } from "feetech.js";
const scsServoSdk = new ScsServoSDK();

// request permission to access the USB device and connect to it
// Note: This will prompt the user to select a USB device
await scsServoSdk.connect();

// read servo position
const position = await scsServoSdk.readPosition(1);
console.log(position); // 1122
```

## Documentations

https://deepwiki.com/timqian/bambot/4.1-feetech.js-sdk


## Example usage:

- Test and config servos: [bambot.org/feetech.js](https://bambot.org/feetech.js)
- Simple html + js example: [test.html](https://github.com/timqian/bambot/blob/main/feetech.js/test.html)
- Control different bots: [bambot.org](https://bambot.org)

## Ref

- https://github.com/Adam-Software/Feetech-Servo-SDK