HBridge Lib

hey guys today i had i idea to make a universal lib for arduino and have some question for you
so lets start heres my code
HBridge.cpp

#include "HBridge.h"
#include "HBridge.h"

int EA[] = {EA1, EA2, EA3, EA4, EA5};
int EB[] = {EB1, EB2, EB3, EB4, EB5};
int I1[] = {I11, I12, I13, I14, I15};
int I2[] = {I21, I22, I23, I24, I25};
int I3[] = {I31, I32, I33, I34, I35};
int I4[] = {I41, I42, I43, I44, I45};

/*

*/
HBridge::HBridge(int hbnum)
{
	_hbnum = hbnum;
	switch(hbnum)
	{
	case 1:
		setEnablePins(EA1, EB1);
		setControlPins(I11, I21, I31, I41);
		break;
	case 2:
		setEnaplePins(EA2, EB2);
		setControlPins(I12, I22, I32, I42);
		break;
	case 3:
		setEnablePins(EA3, EB3);
		setControlPins(I13, I23, I33, I43);
		break;
	case 4:
		setEnablePins(EA4, EB4);
		setContrloPins(I14, I24, I34, I44);
		break;
	case 5:
		setEnablePins(EA5, EB5);
		setControlPins(I15, I25, I35, I45);
	}
}

/*

*/
HBridge::setEnablePins(int EA[], int EB[])
{	
	_EA[] = EA[]; 
	_EB[] = EB[];
	pinMode(_EA[], OUTPUT);
	pinMode(_EB[], OUTPUT);
}

/*

*/
HBridge::setControlPins(int I1[], int I2[], int I3[], int I4[])
{
	_I1[] = I1[];
	_I2[] = I2[];
	_I3[] = I3[];
	_I4[] = I4[];
	pinMode(_I1[], OUTPUT);
	pinMode(_I2[], OUTPUT);
	pinMode(_I3[], OUTPUT);
	pinMode(_I4[], OUTPUT);
}

HBridge.h

#include "Arduino.h"

#ifndef HBridge_h
#define HBridge_h


#if ARDUINO >= 100
    #include "Arduino.h"
#else    
    #include "WProgram.h"
#endif

class HBridge {

public:

    HBridge(int hbnum, int EA[], int EB[], int I1[], int I2[], int I3[], int I4[]);

    void setEnablePins(int EB[], int EB[]);
    void setControlPins(int I1[], int I2[], int I3[], int I4[]);
    void setHBridge(int hbnum);

private:
	int _hbnum;

};

#endif

hers a simply code that i have now a problem

#include <HBridge.h>

HBridge hb1(1);

void setup() {

    // initialize bot pins
    hb1.setEnablePins(3, 5);
    hb1.setControlPins(2, 4, 7, 8);
}

void loop() {
}

and im getting this error

 \libraries\HBridge/HBridge.h:24: error: multiple parameters named 'EB'
sketch_jul06a:18: error: no matching function for call to 'HBridge::HBridge(int)'
 \libraries\HBridge/HBridge.h:22: note: candidates are: HBridge::HBridge(int, int*, int*, int*, int*, int*, int*)
 \libraries\HBridge/HBridge.h:18: note:                 HBridge::HBridge(const HBridge&)
sketch_jul06a.ino: In function 'void setup()':
sketch_jul06a:23: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:23: error: initializing argument 1 of 'void HBridge::setEnablePins(int*, int*)'
sketch_jul06a:23: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:23: error: initializing argument 2 of 'void HBridge::setEnablePins(int*, int*)'
sketch_jul06a:24: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:24: error: initializing argument 1 of 'void HBridge::setControlPins(int*, int*, int*, int*)'
sketch_jul06a:24: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:24: error: initializing argument 2 of 'void HBridge::setControlPins(int*, int*, int*, int*)'
sketch_jul06a:24: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:24: error: initializing argument 3 of 'void HBridge::setControlPins(int*, int*, int*, int*)'
sketch_jul06a:24: error: invalid conversion from 'int' to 'int*'
sketch_jul06a:24: error: initializing argument 4 of 'void HBridge::setControlPins(int*, int*, int*, int*)'

i dont now if um using this right int EA[] = {EA1, EA2, EA3, EA4, EA5};
and this HBridge::HBridge(int hbnum) can some one advice?
for now its simply but i what to include both enable A and B for one bridge to control and many more
but first lets concentrate on this :]

sketch_jul06a:18: error: no matching function for call to 'HBridge::HBridge(int)'

Is there some part of this message that you don't understand? There is one constructor defined. It takes several arguments. You are trying to call it with just one.

int EA[] = {EA1, EA2, EA3, EA4, EA5};
int EB[] = {EB1, EB2, EB3, EB4, EB5};
int I1[] = {I11, I12, I13, I14, I15};
int I2[] = {I21, I22, I23, I24, I25};
int I3[] = {I31, I32, I33, I34, I35};
int I4[] = {I41, I42, I43, I44, I45};

Where are all these values defined?

u see that's the funny part this val

int EA[] = {EA1, EA2, EA3, EA4, EA5};
int EB[] = {EB1, EB2, EB3, EB4, EB5};
int I1[] = {I11, I12, I13, I14, I15};
int I2[] = {I21, I22, I23, I24, I25};
int I3[] = {I31, I32, I33, I34, I35};
int I4[] = {I41, I42, I43, I44, I45};

will be define by end user, this is the declaration of my (users) arduino output ports connected to a single or multiple H-Bridges in my case its only 5 (for now)
or can i rewrite this for something less complicated ?
i re-declared this statement 'HBridge::HBridge(int)' like u say to include the EA EB I1 I2 I3 I4 but im getting still this error "error: invalid conversion from 'int' to 'int*'" can it be that i but to many variables to one statement. this HBridge::HBridge(int hbnum) should only be active if theirs more then one H-Bridges decelerated

will be define by end user, this is the declaration of my (users) arduino output ports

That was in the source code. It is not reasonable to expect your users to edit the source code.

or can i rewrite this for something less complicated ?

Not only can you, you must, if you want the code to compile and for people to actually use the library.

i re-declared this statement 'HBridge::HBridge(int)' like u say to include the EA EB I1 I2 I3 I4 but im getting still this error "error: invalid conversion from 'int' to 'int*'"

"I made some code changes. I'm not going to tell you what they were, but I still get errors. Help me." I think I'll pass for now.

can it be that i but to many variables to one statement.

No. You put the wrong kind.

this HBridge::HBridge(int hbnum) should only be active if theirs more then one H-Bridges decelerated

I don't understand what you mean. If you intend to use default pins when there is only one h-bridge in use (a bad idea, in my opinion, the constructor still needs to be implemented with the whole set of pins, but with default values defined in the header.

ok manage to get this right but its there a simple command to statement many var and its functions in one line
now now i now im being now to demand XD