Skip to main content
10 events
when toggle format what by license comment
Mar 3, 2020 at 14:55 comment added Sterling Butters Let us continue this discussion in chat.
Mar 3, 2020 at 14:52 comment added Juraj if you want to sent keyboard keys, use the Keyboard library. see the examples of the library.
Mar 3, 2020 at 14:20 comment added Sterling Butters As I understand it, I am using Software Serial to collect the buffer I am transmitting to pin 10 (from js). Then I would like to write the buffer using some HID emulation library. My question is, with the buffer I have defined above, would this work and how would I specify the arguments to HID.SendReport(...)?
Mar 3, 2020 at 14:16 comment added Juraj what buffer?. SoftwareSerial and HID have nothing to do one with other.
Mar 3, 2020 at 14:14 comment added Sterling Butters but you think that if I initialized the HID, that buffer might work? Could you also speak to what id, data, and len might be in this case?
Mar 3, 2020 at 6:21 comment added Juraj @SterlingButters, your code in Question doesn't initialize and use HID, so there is no HID in play and sure not over SoftwareSerial
Mar 3, 2020 at 3:10 comment added Sterling Butters Perhaps HID.SendReport(uint8_t id, const void* data, int len) might work but idk what id, data, or len would be exactly in this context... maybe id is the buffer and len is 8 but what would data be?
Mar 3, 2020 at 3:08 comment added Sterling Butters I am thinking that the Serial is not sure how to parse the input buffer. I thought that it might work for a Keyboard.write(<buffer>) method since the report descriptor in Keyboard.cpp might know how to parser the buffer input - but to no avail. This was part of reason for the question "what does Serial.write(...) represent?...
Mar 3, 2020 at 2:52 comment added Sterling Butters This did not solve my issue. I will post my output in an edit
Mar 2, 2020 at 6:09 history answered Juraj CC BY-SA 4.0