Hi,
I have recently purchased a 28x chip and the picaxe axe020 motor controller.
I have installed a l293d chip and I used this board to control 2 motors speed and direction.
The problem I have however is I cannot get the inputs to work ! I want to input on pin 17, this is input/output 6. The default setting is input so I assumed I could just define a symbol at the top of the program something like:
symbol input1 = portc pin17
Using portc to indicate the pin.
I also tried:
symbol input1 = portc 6
(I was thinking input pin 6)
When I try either of these codes I just get an error saying 'error-mistake in this line'
So..... All I need to know is, what is the code for using inputs 0 - 7 (pins 11 to 18)???
Hope someone can help !
Thanks,
Paul.
I have recently purchased a 28x chip and the picaxe axe020 motor controller.
I have installed a l293d chip and I used this board to control 2 motors speed and direction.
The problem I have however is I cannot get the inputs to work ! I want to input on pin 17, this is input/output 6. The default setting is input so I assumed I could just define a symbol at the top of the program something like:
symbol input1 = portc pin17
Using portc to indicate the pin.
I also tried:
symbol input1 = portc 6
(I was thinking input pin 6)
When I try either of these codes I just get an error saying 'error-mistake in this line'
So..... All I need to know is, what is the code for using inputs 0 - 7 (pins 11 to 18)???
Hope someone can help !
Thanks,
Paul.