jit_singh_tara
Full Member level 6
- Joined
- Dec 22, 2006
- Messages
- 325
- Helped
- 9
- Reputation
- 18
- Reaction score
- 4
- Trophy points
- 1,298
- Location
- Delhi , India
- Activity points
- 4,293
hi , as we know that to use a particular pin of a port we use :
#define rs portd.f2 (in mikroc compiler )
i want to know that wether it is possible to use a function to have same functionality ,
i want to make a function in which , any port and any pin can be configured by user)i.e
something like this :
lcd(&portc, 2 , 3, 4) in which i can use any pins for rs , rw , en.
both the port and pins should be configurable.
is there some way of doing it because the in built libraries provided with mikroc compiler has this function , please tell me the details regarding this .
thanks.
#define rs portd.f2 (in mikroc compiler )
i want to know that wether it is possible to use a function to have same functionality ,
i want to make a function in which , any port and any pin can be configured by user)i.e
something like this :
lcd(&portc, 2 , 3, 4) in which i can use any pins for rs , rw , en.
both the port and pins should be configurable.
is there some way of doing it because the in built libraries provided with mikroc compiler has this function , please tell me the details regarding this .
thanks.