Jump to content

Firmware changes


Marxon
 Share

Recommended Posts

Hola,

 

imho it has a great & well-documented code base, better than many "commercial" pieces of software i´ve seen - it should be possible to add what you want, if you have some C knowledge and are willing to read a bit into the code.

 

Many greets,

Peter

Link to comment
Share on other sites

OK thanks!

Seems like i have to edit seq_ui.c because

i want Menu + Rwd to work as a Copy button shortcut.

My first try:

static s32 SEQ_UI_Button_Rew(s32 depressed)

{

seq_ui_button_state.REW = depressed ? 0 : 1;

if( depressed ) return -1; // ignore when button depressed

if( seq_ui_button_state.MENU_PRESSED ) ///line added

return SEQ_UI_Button_Copy(depressed); ///line added

if( SEQ_SONG_ActiveGet() ) {

portENTER_CRITICAL();

SEQ_SONG_Rew();

portEXIT_CRITICAL();

} else {

//SEQ_UI_Msg(SEQ_UI_MSG_USER, 1000, "We are not", "in Song Mode!");

SEQ_UI_Button_StepViewDec(depressed);

}

return 0; // no error

}

But i guess it is not that easy...

Link to comment
Share on other sites

Hi again,

...maybe this is already enough for what you want to achieve?

Unfortunately i can not achieve it only by using the configs...

I played with the firmware code some hours.

It was worth the try but it seems without some C knowledge, i will not get it work.

Now i have two options:

Start to lear C or add some additional buttons....

Link to comment
Share on other sites

solving a problem with your brain is most often better than solving it with your hands :-D

Ja ja, hast ja Recht :b

Außerdem wäre etwas C Wissen sicherlich auch für andere Sachen nützlich.

Aber der Zeitaufwand... *seufz*

Kannst du eine gute Seite/Ebook empfehlen und mir sagen auf welche "C-Bereiche" ich besonders Wert legen sollte oder ich für MIOS auslassen kann?

mfg

Marxon

Link to comment
Share on other sites

Kann Dir leider nicht mit guten Tutorials helfen, ist bei mir schon über 20 Jahre her :-D.

Hier gibt es einige Artikel - alles in allem ein Haufen Arbeit, die aber belohnt wird:

http://www.mikrocontroller.net/articles/C

 

brief in english: difficult question, can´t help you a lot with that, as it has been too long since I started learning it - linked a few german papers.

 

Ciao,

Peter

Edited by Hawkeye
Link to comment
Share on other sites

Thank both of you for this links!

@EsotericLabs:

Thats something i was looking for.

In the Preface it is written:

"The book is not an introductory programming manual; it assumes some familiarity with basic

programming concepts like variables, assignment statements, loops, and functions."

@Hawkeye:

Your link is good too.

Nice tutorials and downloads.

Thus, the next few weeks are scheduled.

But i am sure you will read from me ;)

Best regards

Marxon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...