Skip to content

Commit 0f9713e

Browse files
blackspherefollowerqdot
authored andcommitted
feat: Add support for Hismith Piupiu
1 parent 93341d5 commit 0f9713e

File tree

4 files changed

+48
-3
lines changed

4 files changed

+48
-3
lines changed

crates/buttplug_server/src/device/protocol_impl/hismith_mini.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,14 @@ impl ProtocolHandler for HismithMini {
183183
).into(),
184184
])
185185
}
186+
187+
fn handle_output_spray_cmd(&self, _feature_index: u32, feature_id: Uuid, _level: u32) -> Result<Vec<HardwareCommand>, ButtplugDeviceError> {
188+
Ok(vec![
189+
HardwareWriteCmd::new(
190+
&[feature_id],
191+
Endpoint::Tx,
192+
vec![0xcc, 0x0b, 0x01, 0x0c],
193+
false,
194+
).into()])
195+
}
186196
}

crates/buttplug_server_device_config/build-config/buttplug-device-config-v4.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": {
33
"major": 4,
4-
"minor": 78
4+
"minor": 80
55
},
66
"protocols": {
77
"activejoy": {
@@ -4270,7 +4270,8 @@
42704270
"HISMITH S3",
42714271
"Sinloli Cosima",
42724272
"Sinloli-Ethel",
4273-
"Sinloli Aston"
4273+
"Sinloli Aston",
4274+
"Hismith Piupiu"
42744275
],
42754276
"services": {
42764277
"0000ff90-0000-1000-8000-00805f9b34fb": {
@@ -4557,6 +4558,27 @@
45574558
"2205"
45584559
],
45594560
"name": "Sinloli Aston"
4561+
},
4562+
{
4563+
"features": [
4564+
{
4565+
"feature-type": "Spray",
4566+
"id": "c24a6b8c-6665-4cf6-95f8-51140f9788b4",
4567+
"output": {
4568+
"Spray": {
4569+
"step-range": [
4570+
0,
4571+
1
4572+
]
4573+
}
4574+
}
4575+
}
4576+
],
4577+
"id": "ae9c755d-a11f-43c3-9cce-1c3797788434",
4578+
"identifier": [
4579+
"4002"
4580+
],
4581+
"name": "Sinloli Piupiu"
45604582
}
45614583
],
45624584
"defaults": {

crates/buttplug_server_device_config/device-config-v4/protocols/hismith-mini.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ configurations:
174174
- 0
175175
- 100
176176
id: d9ced3ed-cc74-4731-baeb-7bbf7fda288e
177+
- identifier:
178+
- '4002'
179+
name: Sinloli Piupiu
180+
features:
181+
- feature-type: Spray
182+
id: c24a6b8c-6665-4cf6-95f8-51140f9788b4
183+
output:
184+
Spray:
185+
step-range:
186+
- 0
187+
- 1
188+
id: ae9c755d-a11f-43c3-9cce-1c3797788434
177189
communication:
178190
- btle:
179191
names:
@@ -187,6 +199,7 @@ communication:
187199
- Sinloli Cosima
188200
- Sinloli-Ethel
189201
- Sinloli Aston
202+
- Hismith Piupiu
190203
services:
191204
0000ffe5-0000-1000-8000-00805f9b34fb:
192205
tx: 0000ffe9-0000-1000-8000-00805f9b34fb
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version:
22
major: 4
3-
minor: 78
3+
minor: 80

0 commit comments

Comments
 (0)