Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: LIGHT UP buttons when pressed - FADE OUT when released??  (Read 4501 times)

0 Members and 1 Guest are viewing this topic.

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 217
  • Last login:June 11, 2025, 09:44:06 am
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
LIGHT UP buttons when pressed - FADE OUT when released??
« on: March 21, 2012, 06:34:58 pm »
Hi all!

I have bought some siemitsu clear buttons and RGB's to light them up.
Also have a LEDWiz laying around, so it would be great if I could use that.

The effect I'm after is that the buttons should be unlit until you press one, which then lights up.
After ju release the button it would be sweet if you could have a fade effect back to intensity 0.

Is there any way to accomlish this??

This is more or less the effect I'm after:


Thanks for any help!  ;D
"One coin to rule em' all"

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #1 on: March 21, 2012, 08:33:16 pm »
Assuming you are using a keyboard encoder, you can do that with mamehooker definately, not sure about other applications. 

Mamehooker allows you to bind functions to keypresses as well as official mame outputs.  You would simply bind the on state of each key on your joystick to the appropriate led and the off state to a ramp down effect and/or a script that ramps it down manually.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #2 on: March 21, 2012, 09:48:10 pm »
You can't really fade LEDs to off and on.  Try incandescents.

 :dunno

LOL 

Yeah you can pbj.... that's why every ledwiz has a "ramp effect" function.  LED controllers send pulses of power very rapidly at different intervals to achieve a fading effect.  I mean almost every led controller made for mame cabs in mind supports such a function. 

Have you ever even looked at an example video of a led controller in action?

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 217
  • Last login:June 11, 2025, 09:44:06 am
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #3 on: March 22, 2012, 04:21:31 am »
Thanks abunch HC!  :applaud:
Is this function in MAMAHooker all ready!!?? Any links?

I'm using a iPac2 for the build btw!

Cheers!  :cheers:
"One coin to rule em' all"

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #4 on: March 22, 2012, 04:58:52 am »
MAME hooker... not mamahooker.  ;)

Click on my footer. 

It's not as simple as a turn key function I'm afraid, you'll have to write a script.  There are tutorials on my site.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #5 on: March 22, 2012, 08:22:17 am »
As I recall someone created an app that let you map buttons to light up when pressed. It had some features to switch colors, but not sure about the fade effect you want (although that's built-in to the LEDWiz as Howard mentioned). I did a quick search and could not find the thread.
Robots will kill you.



Arcade Addiction

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 217
  • Last login:June 11, 2025, 09:44:06 am
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #6 on: March 22, 2012, 11:56:05 am »
Too bad arzoo! Would have been sweet with a working app :hissy:
Guess I would have to check the scripting part out then! :D

Strange that this have not been requested before.
Maybe people doing things with LEDBlinky.

But that app looks more like a attract light animator/active buttons in game kinda app.

Know that the video does not show the a fade effect, but that is what I'm after.
Thought of having buttons change in colors the more is pushed too.

Let's see if the hooker want to do what I want!   ;D

Cheers!
"One coin to rule em' all"

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #7 on: March 22, 2012, 06:22:05 pm »
Meh, that's strobing not fading.   ;D

You would be suprised how well it works though.... you can't see any flicker unless you look at them through a camera... much like flourescent lights. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #8 on: March 22, 2012, 07:33:31 pm »
Too bad arzoo! Would have been sweet with a working app :hissy:
Guess I would have to check the scripting part out then! :D

Strange that this have not been requested before.
Maybe people doing things with LEDBlinky.

But that app looks more like a attract light animator/active buttons in game kinda app.

Know that the video does not show the a fade effect, but that is what I'm after.
Thought of having buttons change in colors the more is pushed too.

Let's see if the hooker want to do what I want!   ;D

Cheers!


To be perfectly honest, it is kind of an odd request.  Most people have controls viewers only turn on the lights on buttons that will be used in a game and optionallly color them the right color, that is the most common use for a led controller. 

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 217
  • Last login:June 11, 2025, 09:44:06 am
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #9 on: March 23, 2012, 04:10:59 pm »
hehe! Yes, I know I'm a bit different.  :blah:
Hmm! Well, maybe I get in the line then!

To lit up game specific buttons I guess I have to use LEDblinky with my LEDWiz?
Are there any way to get pre-defined button layouts for games like MAME and other systems with LEDBlinky
or do you have to make them your self?

Thanks for all the input guys! Appreciate it!  :notworthy:
"One coin to rule em' all"

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #10 on: March 23, 2012, 04:49:36 pm »
hehe! Yes, I know I'm a bit different.  :blah:
Hmm! Well, maybe I get in the line then!

To lit up game specific buttons I guess I have to use LEDblinky with my LEDWiz?
Are there any way to get pre-defined button layouts for games like MAME and other systems with LEDBlinky
or do you have to make them your self?

Thanks for all the input guys! Appreciate it!  :notworthy:

You don't have to use ledblinky.... mamehooker will do the same thing for you, but it doesn't automatically generate mame-specific layouts.  For that you need to run johnny5 from within mamehooker.  I think cpwizard can do it as well.  Long story short, light layouts for game are usually derived from controls.dat files.  I think ledblinky can handle that as well.

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 217
  • Last login:June 11, 2025, 09:44:06 am
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: LIGHT UP buttons when pressed - FADE OUT when released??
« Reply #11 on: March 24, 2012, 10:54:28 am »
Nice to know that there are some options here!  :applaud:
That Johnny5 app seems very nice indeed!

I might just try that one out then.

Regards!
« Last Edit: March 24, 2012, 11:46:11 am by gstav »
"One coin to rule em' all"