Programming a Adafruit Macropad to control OBS Scene switching

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Get the macro pad ready for circuit python then the issue I had with certain keystrokes. I will show you how to get Linux to accept F13 - F24 and use them in OBS for hotkeys.

Комментарии • 13

  • @IshamPadron
    @IshamPadron 2 года назад +2

    I'd like to change the functionality of the encoder so that it can be used as volume or brush size in a drawing program and to change macros you press the encoder button in to get into the menu. Do you know if that something that's possible?

    • @ElectronicEnigmaZone
      @ElectronicEnigmaZone  2 года назад +2

      Yes it's possible, the sample code I used for the scene changer also had a basic media player which demonstrated a basic volume control. Should not be hard to change the code to do what you want. I would go to Adafruit guides page and look at the macro pad samples.

    • @IshamPadron
      @IshamPadron 2 года назад

      @@ElectronicEnigmaZone I think in the media player macro uses a hotkey for vol up and down but I would prefer to use the encoder for volume control.

  • @aaronmonroe8428
    @aaronmonroe8428 10 месяцев назад

    amazing video but very confused. please someone help !!! just purchased the adafruit and want to use as a midi controller.
    thank you

    • @blorbb5398
      @blorbb5398 6 месяцев назад

      I agree, it looks super complex.

  • @HelloNotMe9999
    @HelloNotMe9999 2 года назад

    My settings.json file doesn't look anything like that... I have both the standard Python and CircuitPython extensions installed in VS Code. Is there something else I'm missing to have it auto generate that?

    • @ElectronicEnigmaZone
      @ElectronicEnigmaZone  2 года назад +1

      Ok, let's start at VSC setup because if you are not getting settings.json correctly should check if the basics of VSC are working.
      first, make sure this is the minimum ext installed into VSC 1.63.2
      C/C++ IntelliSense (Microsoft)
      MagicPython (MagicStick)
      Pylance (Microsoft)
      Python (Microsoft)
      Visual Studio IntelliCode (Microsoft)
      *Optional C/C++ Extension Pack (Microsoft) Needed later for ESP-IDF
      Create a test folder and in it create a test 'c' program such as hello.c with a classic hello world program
      If you compile the hello.c and are able to run it then VSC is ready for adding CircuitPython
      Next, add the ext CircuitPython v0.1.15 by joedevivo ( I will refer to it as CP)
      restart VSC (important if you add ext and VSC misbehaves)
      Now we need a Microcontroller, this must have the CP set up with CP 7.1.0 firmware. You can use anything that does CP, you had a macro pad for the test I will use a Feather M4 Express.
      Plug it in and a folder CIRCUITPY should show up.
      Make sure it's mounted (I am in Linux so I just click on the folder in file manager)
      It will have some basic files and two folders in it.
      boot_out.txt (version of CP installed)
      code.py (first code file)
      .fseventsd ( think the is mac related)
      lib (CP Libs)
      .metadata_never_index (stops mac indexing)
      When you open the folder for the first time .vscode directory is created and with it a settings.json file and because it saw a code.py file it will add some lines to the file.
      You should see two sections, one dealing with pylance and the second dealing with the CP Ext.
      bottom right in VSC select board
      Another line is added to the settings file under the CP Ext.
      At this point, I would save a workspace file.
      doing so adds some more lines to the settings file
      Also, make sure pip is up to date and install circup to handle lib installs to the lib directory in CIRCUITPY
      pip install --upgrade pip
      pip install circup & do a pip install --upgrade circup if you see any warnings about being unable to get the CP bundle
      At this point, you should see no red squiggles in the code.py and everything should be ready.
      I would show screenshots but youtube is a bit restrictive on what I can paste...
      Also always remember to close the workspace and cleanly dismount the CIRCUITPY folder if you don't want a corrupted filesystem on the microcontroller.

    • @HelloNotMe9999
      @HelloNotMe9999 2 года назад

      @@ElectronicEnigmaZone Thanks. I’m missing several dependencies there.

    • @HelloNotMe9999
      @HelloNotMe9999 2 года назад

      @@ElectronicEnigmaZone Took a bit because my system needed a full reset after a brief power outage, but got it all working now. Thanks!

  • @DatSkateFace
    @DatSkateFace 2 года назад

    do u have a code for creating an open obs macro?

    • @ElectronicEnigmaZone
      @ElectronicEnigmaZone  2 года назад

      That depends, I am using the pad to activate mapped keys to scenes at the moment. If a macro can be tied to a hotkey then yes should be easy to do.

  • @c__a__d__e
    @c__a__d__e 2 года назад

    Can you link the kit?