Vusi Kganye

assigning a variable to port

Discussion created by Vusi Kganye on Jan 30, 2007
Latest reply on Jan 31, 2007 by CrasyCat
how do you assign a switch to port, because I wrote the following code line
bit switch = P1^3   which is supposed to assign a variable switch to bit 3 of port1 but it gives me an error message on this line when I try to compile