basic code to Arduino code

How would this Picaxe code

....
cont:
if pinc.2 = 1 then east
if pinc.1 = 0 then cont

...

be coded for the Pro Mini?

tnx

Al

Check the doc for digitalRead and also syntax for if statement and ==

alhoop1137: How would this Picaxe code be coded for the Pro Mini?

I strongly suspect you have a lot more Arduino code into which you want to put that extra bit. If so please post it so we can see the context.

...R

J-M-L: Check the doc for digitalRead and also syntax for if statement and ==

I would be glad to. Do you have a recommendation? I got 'Arduino for Dummies" and felt like a dummy for buying it. BTW I found out I can use goto and subroutines which will work for my one page program.

alhoop1137: ... BTW I found out I can use goto ...

don't.

I found this book to be very good for Arduino programming learners.

Start with small programs, like blinking LED, then using buttons. Playing with these code will give you some idea how Arduino code works. Later you can rewrite your existing code to Arduino.

alhoop1137: BTW I found out I can use goto and subroutines which will

Subroutines (functions in C/C++) are excellent.

DO NOT use GOTO unless you are an expert.

You may find something useful in Planning and Implementing a Program

...R