Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC1000 MK2 remapping buttons #21

Open
ivogrig opened this issue May 22, 2021 · 1 comment
Open

SC1000 MK2 remapping buttons #21

ivogrig opened this issue May 22, 2021 · 1 comment

Comments

@ivogrig
Copy link

ivogrig commented May 22, 2021

Hi Rasteri,

[](SC1000 MK2)

I bought a ready-made SC1000 MK2 from portablismgear.com and I would like to swap the STARTSTOP button with the first CUE button. (It has four CUE buttons on the top and the SHIFT / STARTSTOP on the front-side)
(During the process I decided to first test swapping the SHIFT- and STARTSTOP buttons for simplicity)

I tried copying the sections from the scsettings.txt file into the one on my usb-stick and messing with the pin numbers (swapping them) but I could not figure it out, the buttons stop functioning. I also tried the Olimex settings from the scsettings.bak file.

The way I understand it, the Olimex GPIOs are the built-in ones and then there is the external MCP23017.
I have no idea which one is used in the the SC1000 MK2.
Is there an easy way to find the corresponding pin numbers via software, without opening the hardware box?

Where in the code is the settings file being parsed and what are the default pin-settings for the SC1000, does it happen here?
https://github.com/rasteri/SC1000/blob/master/software/sc_input.c#L147

Sorry to bug you about this.

Best,
Ivo

@DubbyLabby
Copy link

Schematic could help you understand the function of the pic and what pins are directly pointing the Olimex.
https://github.com/rasteri/SC1000/blob/master/hardware/SC500/docs/SC500%20-%20Schematic.PDF

The pic takes care of xfader, pot 1&2 and capacitive sensor.

I read all the config files (and the code behind) but I can't remember if just swapping the pin values will be enough so it could be an error or not. I should look again into these files to bring some more help but meanwhile let's hope Andy puts some light into it.

This is the main.c code for the pic
https://github.com/rasteri/SC1000/blob/master/firmware/main.c

Here there are some pin mapping on sc500, maybe will help you in your quest. I also get bogus with too many C and complex syntax like those...
https://github.com/rasteri/SC1000/blob/master/software/sc_input.c

Here mapped functions
https://github.com/rasteri/SC1000/blob/master/software/sc_midimap.h

I hope it helps somehow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants