POrts of Startkit
Posted: Mon Jul 25, 2016 2:12 pm
Hello everyone,
I may have a stupid question, but after looking for without finding an answer, I thought that you guys might help me.
I want to use the button on the startkit. To do so, I define a port. The only problem is I don't know which port to use. In the datasheet, the button corresponds to 32A0.
Thus by defining:
port p_button = XS1_PORT_32A;
I get the button on one bit but I have the other 31 bits I don't want.
What should I write instead of XS1_PORT_32A to get the button on ist own?
Thank you :)
I may have a stupid question, but after looking for without finding an answer, I thought that you guys might help me.
I want to use the button on the startkit. To do so, I define a port. The only problem is I don't know which port to use. In the datasheet, the button corresponds to 32A0.
Thus by defining:
port p_button = XS1_PORT_32A;
I get the button on one bit but I have the other 31 bits I don't want.
What should I write instead of XS1_PORT_32A to get the button on ist own?
Thank you :)