Skip to content

Commit 49719f3

Browse files
authored
Update README.md
1 parent cd30aa3 commit 49719f3

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,16 @@ player.submit_dot("feedback_id", BhapticsPosition.VestBack.value,
6565
[{"index": 0, "intensity": 100}], duration_millis=100)
6666
```
6767

68-
## Example: Dot-Based Patterns
68+
## Direct Device Control
6969

70-
```python
71-
from bhaptics import better_haptic_player as player
72-
from bhaptics.better_haptic_player import BhapticsPosition
73-
from time import sleep
70+
### Submit Dot Pattern
7471

75-
player.initialize()
72+
Play haptic feedback by specifying dot indices:
7673

77-
# Play sequential dots on vest front
78-
for i in range(20): # Vest has 20 motors
79-
player.submit_dot("front_dots", BhapticsPosition.VestFront.value,
80-
[{"index": i, "intensity": 100}], 100)
81-
sleep(0.5) # Wait between activations
74+
```python
75+
# Play pattern on vest back (dots are indexed 0-19)
76+
player.submit_dot("feedback_id", BhapticsPosition.VestBack.value,
77+
[{"index": 0, "intensity": 100}], duration_millis=100)
8278
```
8379

8480
### Submit Path Pattern

0 commit comments

Comments
 (0)