aboutsummaryrefslogtreecommitdiff
path: root/examples/rp235x
diff options
context:
space:
mode:
authormatteo <email>2025-09-23 20:20:43 +0200
committermatteo <email>2025-09-23 20:20:43 +0200
commit2e303c995c53a97a1c2eaecf77827f02567b8417 (patch)
tree77ab31d8cf91590a384007936dd09f69e58a475d /examples/rp235x
parentd72e8d9af921bfd5ddc25a17933e16b2132386b8 (diff)
update hid examples
Diffstat (limited to 'examples/rp235x')
-rw-r--r--examples/rp235x/src/bin/usb_hid_keyboard.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/rp235x/src/bin/usb_hid_keyboard.rs b/examples/rp235x/src/bin/usb_hid_keyboard.rs
index 6f496e23a..fa9eaa863 100644
--- a/examples/rp235x/src/bin/usb_hid_keyboard.rs
+++ b/examples/rp235x/src/bin/usb_hid_keyboard.rs
@@ -33,6 +33,10 @@ async fn main(_spawner: Spawner) {
33 config.serial_number = Some("12345678"); 33 config.serial_number = Some("12345678");
34 config.max_power = 100; 34 config.max_power = 100;
35 config.max_packet_size_0 = 64; 35 config.max_packet_size_0 = 64;
36 config.composite_with_iads = false;
37 config.device_class = 0;
38 config.device_sub_class = 0;
39 config.device_protocol = 0;
36 40
37 // Create embassy-usb DeviceBuilder using the driver and config. 41 // Create embassy-usb DeviceBuilder using the driver and config.
38 // It needs some buffers for building the descriptors. 42 // It needs some buffers for building the descriptors.
@@ -64,7 +68,7 @@ async fn main(_spawner: Spawner) {
64 poll_ms: 60, 68 poll_ms: 60,
65 max_packet_size: 64, 69 max_packet_size: 64,
66 }; 70 };
67 let hid = HidReaderWriter::<_, 1, 8>::new(&mut builder, &mut state, config); 71 let hid = HidReaderWriter::<_, 1, 8>::new_keyboard(&mut builder, &mut state, config);
68 72
69 // Build the builder. 73 // Build the builder.
70 let mut usb = builder.build(); 74 let mut usb = builder.build();