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: Can this be done? LED buttons question.  (Read 938 times)

0 Members and 1 Guest are viewing this topic.

Sarver Systems

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 937
  • Last login:October 07, 2020, 12:46:05 am
Can this be done? LED buttons question.
« on: October 17, 2013, 03:51:34 pm »
I'm going to be building some MAME cabs from some older machines.

I'm planning to do the 8-button layout to allow XBox 360 control-type layout.

As some games only support less than 8, I'd like to have the supported buttons light up for the game being played.

THe buttons that aren't used for that games would be unlit.
I would also like to flash the buttons a different color when they're pressed during the game.

For example, GAME1: the A and B button would light green for a game, then light red when it's pushed. All other buttons would be unlit.
GAME2: the A,B,C,D would light up purple, then light white when pressed. All other buttons would be unlit.

shiori1425

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:March 25, 2015, 11:56:35 am
  • R-Cade #1 in progress
Re: Can this be done? LED buttons question.
« Reply #1 on: October 17, 2013, 03:54:35 pm »
Definitely possible, not to hard either.  Just going to take a lot of coding unless you only plan on having a couple of three games per cab.  It's you are taking a mame cab then you are in for a ton of pattern writing.

LEDBlinky or if you can code you can make a basic app yourself that chooses a pattern based off a front end choice.

rhys

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 42
  • Last login:March 13, 2014, 09:43:56 pm
  • I want to build my own arcade controls!
Re: Can this be done? LED buttons question.
« Reply #2 on: October 17, 2013, 04:01:41 pm »
I agree with shiori,  a LOT of coding.  I just wrote my own USB HID controller for interfacing controls, and that took a good bit of work.  Haven't even tried messing with LED output yet, but you'll likely need custom microcontroller code to drive the LEDs as well as custom front end code to handle all the patterns.

Nephasth

  • Guest
  • Trade Count: (0)
Re: Can this be done? LED buttons question.
« Reply #3 on: October 17, 2013, 05:27:00 pm »
If we're talking mame games, it doesn't require any coding with LEDBlinky. One check box will light only active buttons for each mame game. Paradise Arcade's new LED controller sounds like it might be able to handle what you're wanting to do as far as changing colors when pressed, but I don't see the point in doing that, your supposed to be looking at the screen.
« Last Edit: October 17, 2013, 05:28:58 pm by Nephasth »

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:August 19, 2025, 01:58:13 am
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Can this be done? LED buttons question.
« Reply #4 on: October 17, 2013, 05:57:49 pm »
May I ask why you want them to light differently when pressed?
***Build what you dig, bro. Build what you dig.***

armi0024

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 470
  • Last login:January 12, 2023, 09:57:36 pm
Re: Can this be done? LED buttons question.
« Reply #5 on: October 18, 2013, 04:21:38 am »
Our new controller is independent of the computer...  but our new new controller.... :)

Sarver Systems

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 937
  • Last login:October 07, 2020, 12:46:05 am
Re: Can this be done? LED buttons question.
« Reply #6 on: October 18, 2013, 03:13:37 pm »
The more I think about it, I probably wont want the button to change color as it's pressed.

Having only the buttons used light up would be great.