How: Combinations Of Push Buttons Call Different Functions

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

As @lastchancename as suggested, give each of your 3 buttons a value to the power of 2.
A=1
B=2
C=4
If you use these values to tell which button is pressed you will get unique values.
valA + valB + valC = buttonfunction.

NO buttons pressed. buttonfunction = 0;
A button pressed. buttonfunction = 1;
B button pressed. buttonfunction = 2;
C button pressed. buttonfunction = 4;

A and B pressed. buttonfunction = 1+2 =3
B and C pressed. buttonfunction = 2+4 =6
A and C pressed. buttonfunction = 1+4 =5

A,B,C pressed. buttonfunction = 1+2+4 = 7.

Then use select..case to run your different functions.

This will save all those if ..else.. statements as you will have a simple select and a cascade of case 0, case 1, case 2 etc statements.

I hope that is understandable, its late here, I have to get my beauty sleep. :o

Tom... :slight_smile: