Skip Navigation

Posts
5
Comments
624
Joined
2 yr. ago

  • Discord push-to-talk. :P

  • Here's the code I wrote:

     
        
    #include "Keyboard.h"
    
    const char FUNCTION_F14 = 0xF1;
    int down = 0;
    
    void setup() {
      // make pin 2 an input and turn on the
      // pullup resistor so it goes high unless
      // connected to ground:
      pinMode(2, INPUT_PULLUP);
      // initialize control over the keyboard:
      Keyboard.begin();
    }
    
    void loop() {
      int nowDown = digitalRead(2) == LOW;
    
      if (down != nowDown) {
        down = nowDown;
    
        if (down) {
          Keyboard.press(FUNCTION_F14);
        } else {
          Keyboard.release(FUNCTION_F14);
        }
      }
    }
    
      

    Note that the #include was meant to use angle brackets, but Lemmy ate them. If this doesn't work, change it back to angle brackets around the Keyboard.h instead of quotes.

    Also, the parts I used:

    I wired it up like in the photo, and just laid it on a bed of hot glue so the USB port sticks out the hole. I had intended to get a mini USB extension cable inside the pedal, but the one I ordered turned up defective, and this worked out just fine.

  • some of them are titties

    Lies, not in the 2020s where tittes are illegal :P

  • I bought an existing foot pedal off aliexpress. It came with a little dangling wire, supposedly meant to be hooked up to a piece of industrial equipment. Opened it up, removed the existing wire, soldered a wire to a suitable arduino dev board and hot glued it inside. If you want I can dig up the exact parts I used and even the code. But I also suspect maybe you want to figure it out yourself?

  • I built myself a foot pedal that presses F14. It's super useful as a global hotkey 'cause nothing else uses it. :P

  • I like how in this article the greedy cunt is talking about consumers just getting used to the idea of not owning the game being okay because they'll keep their progress and can come back to their game any time. Like we haven't seen media disappear off streaming services all the time. Like nobody has ever fallen on hard times and had to cut ongoing costs. Fuck off.

  • My keyboard does not require backlit keys because I am a power user.

  • (The pilgrims didn't flee persecution, they left so they could persecute :P)

  • Day-one and one-day have very different meanings, and it seems telling that he seems to use the former…

  • Kedgereeshire could be a real place, almost…

  • I am really hoping some wizard makes Steam OS work on the Legion Go.

  • When they stop being huge fucking problems, we'll stop making fun of you for them :P

  • I got on twitter because artists I want to follow post there, a lot of them exclusively. They do this because -- in theory -- that is where the audience is, with the biggest potential for growth. Then they all get shadowbanned, even the ones that don't draw porn, because they don't bring in ad revenue or something. Alternatives exist but so many of them refuse to go to another platform because there isn't an audience there, pre-packaged and waiting for them.

    I understand it, but also I don't. It's a cyclical problem but only the content-producing side has the power to solve it.

  • Rule

    Jump
  • This is referencing the true pacifist route, not genocide.

  • Margin of error.

  • We talking about web4 when web3 isn't even real yet?

  • Anyone else remember when people hated PNG like they hate WEBP today, for the same reason; namely lack of wide-spread software support?

  • This is especially true if you live in a place where the 1 dollar option would mean infinite coins rather than bank notes. :P