STM32F4 Discovery USB HID module

Posted on
  • Hi,

    Is possible to use the USB and USB HID modules with the STM32F4 Discovery?

    When I try to use the module I get the following error:

    Code:

    var kb = require("USBKeyboard");
    //var kb = require("https://github.com/espruino/EspruinoDocs/blob/master/modules/USBKeyboard.js");
    
    
    setWatch(function() {
      kb.setModifiers(kb.MODIFY.SHIFT, function() {
        kb.type("HELLO WORLD", function() {
          kb.setModifiers(0, function() {
            kb.tap(kb.KEY.ENTER);
          });
        });
      });
    }, BTN, {debounce:100,repeat:true, edge:"rising"});
    

    1 Attachment

    • Espruino_USB_module_error.PNG
  • I'm afraid I don't think they're built in by default because of the pain of supporting them.

    You could either use an official board like the Espruino Pico or WiFi, or could possibly try and build it in yourself?

  • The Pico microcontroller is an stm32f4 too, the module should be almost the same, don't you think?
    Any idea where to start to build the module by myself?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

STM32F4 Discovery USB HID module

Posted by Avatar for donic @donic

Actions