20M is not up to 8 inputs???

Vroom

Member
20M has only 5 inputs, command editor saying error that impossible input4-7, most input0-3 only but 20M said can more up to 8 inputs, why only 5 inputs?
 

inglewoodpete

Senior Member
~sigh~ it realy helps to tell us a bit more than that. What version of Programming Editor are you using? (Also, it may help if you tell us the firmware version but its probably irrelevant.)

Also, I suggest you close the PE and open it again. This may help.
 

Vroom

Member
I was open the PE so same happen. I clicked Syntax check that error input4-7, but input0-3 are successful, what is problem with input4-7. 20M has only 4 inputs, have any report?
 

MartinM57

Moderator
Code:
#picaxe 20m

b0 = pin0
b1 = pin1
b2 = pin2
b3 = pin3
b4 = pin4
b5 = pin5
b6 = pin6
b7 = pin7

'...or....

b8 = pins
...works OK for me.

What problem do you have:
- syntax error when compiling?
- unexpected error when running?
 
Last edited:

westaust55

Moderator
Two things:

1. Try installing PE V 5.2.3 - I tried a quick test and no problems with syntax making reference to input pins 0 to 7

2. please upload you program code so members can better understand what the problem is
 

Vroom

Member
Yes, im updating v5.2.4. Mine is v5.2.2 I think program made a mistake so need update new version, hopefully.
 

Vroom

Member
I updated v5.2.4. then put command so still failed but i changed put pin0-7 are successful form syntax check, input4-7 didn't successful, but input0-3 was fine! its strange why use pin0-7 only not input0-7! Im happy use all pin0-7 not a problem, thanks.
 

Vroom

Member
I updated v5.2.4. then put command so still failed but i changed put pin0-7 are successful from syntax check, input4-7 didn't successful, but input0-3 was fine! its strange why use pin0-7 only not input0-7! Im happy use all pin0-7 for 20M not a problem, thanks.
 

MartinM57

Moderator
Interesting...

...I didn't even know that e.g. b0 = input0 was valid syntax at all. Maybe it isn't, since it b0 = input4 doesn't seem to be valid.

If you look at the pinout diagrams on page 8 of manual 1 there is a difference for inputs 4 and above - they have no alternative uses, i.e. they are only available as inputs.

Just stay using pinX - that's the normal way
 

hippy

Ex-Staff (retired)
It appears the "input4" to "input7" variables have not been made available within the 20M compiler. We will look into that and investigate it.

As they are synonyms for the "pin" names you can use those instead, or temporarily define them at the top of your program using -

Symbol input4 = pin4
Symbol input5 = pin5
Symbol input6 = pin6
Symbol input7 = pin7
 

westaust55

Moderator
I updated v5.2.4. then put command so still failed but i changed put pin0-7 are successful form syntax check, input4-7 didn't successful, but input0-3 was fine! its strange why use pin0-7 only not input0-7! Im happy use all pin0-7 not a problem, thanks.
See the PE is now at V5.2.4 and with a number of errors being flagged of recent a 5.2.5 may be out soon as well. :cool:
 

Technical

Technical Support
Staff member
You should be able to use both input and pin, although most people just use pin. We will fix the input for the 20M on the next release, until then just use pin instead.
 
Top