Hi there,
I have a bank of LEDs connected on PORTB that I want to toggle at random
by passing a variable to the 'Toggle' function.
For example
...................................
Sub Light(x as bit )
toggle(x)
End sub
Light(portb.2)
Light(portb.5)
............................
The code above gives this error: "Parameter must be a single port pin".
I cannot see what is wrong with it!
But because I am new to this, probably there is something that must be very obvious to you guys.
Any help is welcome.
Regards
Francesco C.
Cannot pass pass variable to 'Toggle' function.
Moderators: David Barker, Jerry Messina
-
- Posts: 41
- Joined: Thu Feb 26, 2009 6:54 pm
- Location: UK
-
- Posts: 41
- Joined: Thu Feb 26, 2009 6:54 pm
- Location: UK