Making software to have bias lighting on handheld gaming PCs, could use a few pointers

  • Hey there, for my free open source project I'm developing a software feature to use the RGB LEDs that can be found around the joysticks on gaming handhelds like the ROG Ally, Ayaneo and others for bias lighting. Example:

    Kena-Average-Color-Test
    streamable.com

    I have all the basics working:

    1. At 30 FPS, interpret the screen, determine average color near the top left and right middle
    2. Average out the colors of the last 5 frames for smoothing
    3. Update the LEDs around the left and right joystick accordingly

    What I could use help with:

    1. LED color calibration. My LEDs are a bit off, so red on the screen, turns into pink for the LEDs, even though the LED has a proper red color. Same for greens and white but blue is pretty good. I've been digging around the internet and it seems I could make something of an offset map/look up table and depending on which color is closest, do some linear interpolation, but I'm not sure. How does Hyperion do this? Could someone link me to the code in question?
    2. Gaming specific. As this feature will mostly be used during gaming, does anyone have some specific recommendations for features or considerations when it comes to gaming?

    Link to the FOSS project: Handheld Companion

  • CasperH2O September 29, 2023 at 8:41 AM

    Changed the title of the thread from “Making software to have bias lighting on handheld gaming PCs could use a few pointers” to “Making software to have bias lighting on handheld gaming PCs, could use a few pointers”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!