Is Swapping LED Assignment on I/O Board Possible?

Discussion of official MiSTer Project addons. (https://github.com/MiSTer-devel/Hardware_MiSTer)


Jimiga
Posts: 30
Joined: Sat Jan 09, 2021 7:45 pm
Has thanked: 2 times
Been thanked: 1 time

Is Swapping LED Assignment on I/O Board Possible?

Unread post by Jimiga »

Hi! I'd like to rearrage the LED assignment on my IO board.
Reason? I've installed the DE10 into an A600 case using one the the excellent daughter boards from 8bitsForever.net

The A600's LEDs work well, but for Minimig & C64 especially, the one labelled Floppy on the case is showing Power (constant), and the one labelled DISK shows floppy activity.

I'd like to swap these to correct this, without rewiring the LED connections if possible! Can they be reassigned in the Mister.ini file, or edited in the core file? Like this:

IMG_5055.JPG
IMG_5055.JPG (597.06 KiB) Viewed 1491 times

I found this info
https://www.reddit.com/r/fpgagaming/com ... board_for/
specifially:
https://github.com/MiSTer-devel/C64_MiS ... q=LED_USER

Also found this schematic info... not sure it's helpful though
Thanks!

DeviceP1_____GPIO_PIN____PIN_ASGN
User LED P1-1 GPIO_1[0] PIN_AG28
Disk LED P1-3 GPIO_1[2] PIN_AA15
Power LED P1-5 GPIO_1[4] PIN_Y15

Btn_osd P1-13 GPIO_1[10] PIN_AG25
Btn_user P1-15 GPIO_1[12] PIN_AH24
Btn_reset P1-17 GPIO_1[14] PIN_AG23

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: Is Swapping LED Assignment on I/O Board Possible?

Unread post by Newsdee »

You will need to recompile the cores. It seems it is assigned here:

c64:
https://github.com/MiSTer-devel/C64_MiS ... 64.sv#L186

minimig:
https://github.com/MiSTer-devel/Minimig ... ig.sv#L657

So just swap the assignment to where you want
User avatar
legacypixels
Posts: 91
Joined: Sun May 24, 2020 9:20 pm
Has thanked: 25 times
Been thanked: 25 times

Re: Is Swapping LED Assignment on I/O Board Possible?

Unread post by legacypixels »

Swapping the pins in the connector at the IO board side of the cable should be super easy and reversible.
US based seller of MiSTer addon boards. Visit https://www.legacypixels.com/mister
User avatar
thisisamigaspeaking
Posts: 244
Joined: Mon May 23, 2022 12:28 am
Has thanked: 80 times
Been thanked: 23 times

Re: Is Swapping LED Assignment on I/O Board Possible?

Unread post by thisisamigaspeaking »

Are there some cores with all three LEDs in use where they are are correct? I'm surprised some are correct and others are not.

I understand you prefer not to have to do anything physically to the connectors, but if you change your mind you might want to take a look at threads like viewtopic.php?p=57261 and viewtopic.php?p=57245, but do be aware I think there is potentially incorrect or misleading information as I have commented.
Jimiga
Posts: 30
Joined: Sat Jan 09, 2021 7:45 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Is Swapping LED Assignment on I/O Board Possible?

Unread post by Jimiga »

Thank you all for the replies - all valid suggestions and solutions!

I did try tinkering with the wires - knowing full well the risk that the 30yr old dry solder joints might come away from the LED's at the other end. The wires are short and stiff. They did, but I was able to confirm simpling swapping some pins around in the housing would work before that happened.

All good though! It's just a good excuse to solder on some longer wires, something I wanted to do anyway, and nothings broken. I took photos before tinkering.

Also I ordered a custom LED board with some nice blue and white LED lights too.

@legacypixels, I've bought various MiSTer parts from you over the last couple of years! Thanks for the great service and the input here .
Post Reply