Non adressable leds effect on led strip

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #159838
    christian0007
    Participant
      @christian0007

      First post here! Since I saw TerryRed pinkadia, I knew a wanted to build a pincab (with arcade buttons!)

      I’m currently in the planning phase of my pincab build and I bougth these individual WS2812 https://fr.aliexpress.com/item/32805045364.html?spm=a2g0s.9042311.0.0.4f146c37TrJzBd thinking that I could do something like this Neopixel tutorial (https://learn.adafruit.com/neopixel-arcade-button/assembly) to light all of my buttons (all of the arcade buttons, the front facing ones, etc)

      I didn’t want to buy a LedWiz (shipping is so expensive to Québec), so I figured I’d use the Teensy I needed for everything.

      I ran into an issue pretty quickly: single RGB led and lamp could not be assigned to a ledstrip as it was expecting an area effect. So I had no way of having my clear buttons light up green for the Start button, red for exit and to simply light up my arcade buttons without setting them up as ledstrip..

      So I coded new toys!

      This is my fork of DirectOutput:  https://github.com/donchristian0007/DirectOutput

      I added 2 toys: LedStripLamp and LedStripRGBLed. They basically are 1 led long ledstrip that accept the original toy (non ledstrip) effects. In the LedStripLamp you can specify the color you want.

      Keep in mind at this moment I only conducted small scale tests, but it seems to work fine. I wanted to test more before doing a pull request to the original DirectOutput github.

      Let me know what you think! I’ll take any suggestion, but not sure I’ll have time to implement them quickly!

      Cabinet.xml toy example:

      <LedStripLamp>
      <Name>Start Button</Name>
      <ColorOrder>GRB</ColorOrder>
      <Color>#00FF00</Color>
      <LedNumber>129</LedNumber>
      <FadingCurveName>Linear</FadingCurveName>
      <OutputControllerName>LEDStripController</OutputControllerName>
      </LedStripLamp>
      <LedStripRGB>
      <Name>FlipperRGB</Name>
      <ColorOrder>GRB</ColorOrder>
      <LedNumber>130</LedNumber>
      <FadingCurveName>Linear</FadingCurveName>
      <OutputControllerName>LEDStripController</OutputControllerName>
      </LedStripRGB>
      <LedStrip>
      <Name>PF Back</Name>
      <Width>8</Width>
      <Height>16</Height>
      <LedStripArrangement>TopDownAlternateRightLeft</LedStripArrangement>
      <ColorOrder>GRB</ColorOrder>
      <FirstLedNumber>1</FirstLedNumber>
      <FadingCurveName>Linear0To224</FadingCurveName>
      <OutputControllerName>LEDStripController</OutputControllerName>
      </LedStrip>
      <LedWizEquivalent>
      <Name>LEDStripControllerEQ 1</Name>
      <LedWizNumber>80</LedWizNumber>
      <Outputs>
      <LedWizEquivalentOutput>
      <OutputName>Start Button</OutputName>
      <LedWizEquivalentOutputNumber>1</LedWizEquivalentOutputNumber>
      </LedWizEquivalentOutput>
      <LedWizEquivalentOutput>
      <OutputName>FlipperRGB</OutputName>
      <LedWizEquivalentOutputNumber>2</LedWizEquivalentOutputNumber>
      </LedWizEquivalentOutput>
      <LedWizEquivalentOutput>
      <OutputName>PF Back</OutputName>
      <LedWizEquivalentOutputNumber>5</LedWizEquivalentOutputNumber>
      </LedWizEquivalentOutput>
      </Outputs>
      </LedWizEquivalent>

       

    Viewing 1 post (of 1 total)

    Forums are currently locked.

    ©2024 VPinBall.com

    Log in with your credentials

    Forgot your details?