Jump to content

Recommended Posts

Posted

okay i'm lost on this case - is it possible to configure buttons the way so that it - pressed once has one function - pressed a second time has another function and pressed a third time jumps back to zero ?

Posted

it's really really easy to do in C

using ifs or a switch

for example:

if (buttonPressNumber == 0) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 1) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 2) {

    //do whatever here

    buttonPressNumber=0;

}

Posted
i was afraid you would use that term "write in c"... i guess i will have to learn it if i really want to achieve something...

basically yes!

but, you don't really need to code from scratch, there are so many bits of code about on the site you can cut and paste and edit - much easier and a great way to learn!

Posted
you are a braver man than I!
I like to consider myself a hard headed old fool. 8)

Assembler just happens to be what I started off with. If all the C wrapper stuff for the MIDIBox was as common then, I'd probably have gotten into that. It was coincidentally around the time I was trying to learn some anyway, but I've forgotten most of it now. ;D

George

PS- I barely get by with assembler, so throwing something else in the mix probably wouldn't be the best idea right now.

Posted

whatever works for you!

Good luck with the assembler mission.

Let me know if I can help with any logic stuff, I'm sure there are lots of ppl on here who can guide you through the asm minefield....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...