Reading value of pin in g code

More
9 years 7 months ago #90204 by Radek
Replied by Radek on topic Reading value of pin in g code
I got while loop, but i need also if but it doesn't work.. are there any mistakes in my code ?

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #90206 by andypugh
Replied by andypugh on topic Reading value of pin in g code

Radek wrote: I got while loop, but i need also if but it doesn't work.. are there any mistakes in my code ?


Well, the command "Do Stuff" if it is literally in the code won't help.

By default there are only 4 digital input pins, so your P11, P12, P13 are likely to cause trouble.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #90209 by Radek
Replied by Radek on topic Reading value of pin in g code

andypugh wrote:

Radek wrote: I got while loop, but i need also if but it doesn't work.. are there any mistakes in my code ?


Well, the command "Do Stuff" if it is literally in the code won't help.

By default there are only 4 digital input pins, so your P11, P12, P13 are likely to cause trouble.


this is my code... While is working properly, but if not. Why? I want also to back to the 1st line of programme after endif.
Attachments:

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #90210 by andypugh
Replied by andypugh on topic Reading value of pin in g code
What error message do you get?

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago - 9 years 7 months ago #90212 by Radek
Replied by Radek on topic Reading value of pin in g code
I don't get any error message but it doesn't work.. There is problem about if
Last edit: 9 years 7 months ago by Radek.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #90214 by andypugh
Replied by andypugh on topic Reading value of pin in g code
Do you actually have digital inputs 11, 12 and 13?

Please Log in or Create an account to join the conversation.

Time to create page: 3.016 seconds
Powered by Kunena Forum