You are reading a single comment by @user79809 and its replies. Click here to read the full conversation.
  • I have sent the following code to the espruino pico and saved:

    var kb = require("USBKeyboard");
    
    setWatch(function() {
      kb.setModifiers(kb.MODIFY.SHIFT, function() {
        kb.type("HELLO WORLD", function() {
          kb.setModifiers(0, function() {
            kb.tap(kb.KEY.ENTER);
            LED2.toggle();
          });
        });
      });
    }, BTN, {debounce:100,repeat:true, edge:"rising"});
    
    

    The LED2.toggle() works perfectly after unplugging and re-plugging but nothing happens when I press the button when I'm expecting "HELLO WORLD". I am fairly new so I apologise if I've simply missed something obvious

About

Avatar for user79809 @user79809 started