BS2p40 & PIN constants
Archiver
Posts: 46,084
One more question regarding the *40... (can you tell I
just got one [noparse]:)[/noparse]
If I want to declare some constant pins ( in my case
all of them ) -> something like:
'
[noparse][[/noparse] I/O Definitions
]
' MAINIO
A PIN 0
B PIN 1
C PIN 2
D PIN 3
E PIN 4
F PIN 5
G PIN 6
H PIN 7
I PIN 8
J PIN 9
K PIN 10
L PIN 11
N PIN 12
O PIN 13
P PIN 14
Q PIN 15
' AUXIO
R PIN 0
S PIN 1
T PIN 2
U PIN 3
V PIN 4
W PIN 5
X PIN 6
Y PIN 7
Z PIN 8
SPACE PIN 9
ENTER PIN 10
TILDE PIN 11
UU PIN 12
DD PIN 13
LL PIN 14
RR PIN 15
How can I make this happen? I am sure there's
something I'm not seeing here. Thanks! ((o))
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
just got one [noparse]:)[/noparse]
If I want to declare some constant pins ( in my case
all of them ) -> something like:
'
[noparse][[/noparse] I/O Definitions
]
' MAINIO
A PIN 0
B PIN 1
C PIN 2
D PIN 3
E PIN 4
F PIN 5
G PIN 6
H PIN 7
I PIN 8
J PIN 9
K PIN 10
L PIN 11
N PIN 12
O PIN 13
P PIN 14
Q PIN 15
' AUXIO
R PIN 0
S PIN 1
T PIN 2
U PIN 3
V PIN 4
W PIN 5
X PIN 6
Y PIN 7
Z PIN 8
SPACE PIN 9
ENTER PIN 10
TILDE PIN 11
UU PIN 12
DD PIN 13
LL PIN 14
RR PIN 15
How can I make this happen? I am sure there's
something I'm not seeing here. Thanks! ((o))
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Comments
>just got one [noparse]:)[/noparse]
>
>If I want to declare some constant pins ( in my case
>all of them ) -> something like:
>
>'
[noparse][[/noparse] I/O Definitions
>]
>
>' MAINIO
>A PIN 0
>B PIN 1
>C PIN 2
>D PIN 3
>E PIN 4
>F PIN 5
>G PIN 6
>H PIN 7
>I PIN 8
>J PIN 9
>K PIN 10
>L PIN 11
>N PIN 12
>O PIN 13
>P PIN 14
>Q PIN 15
>
>' AUXIO
>R PIN 0
>S PIN 1
>T PIN 2
>U PIN 3
>V PIN 4
>W PIN 5
>X PIN 6
>Y PIN 7
>Z PIN 8
>SPACE PIN 9
>ENTER PIN 10
>TILDE PIN 11
>UU PIN 12
>DD PIN 13
>LL PIN 14
>RR PIN 15
>
>How can I make this happen? I am sure there's
>something I'm not seeing here. Thanks! ((o))
You can do that (but watch out for letters B and W, which might be
reserved). The Stamp will not automatically switch between mainio
and auxio. Your program has to do that. For example, HIGH DD will
affect pin p13 on either mainio or auxio, whichever happens to be
selected at the moment.
The "pin" syntax is good PBASIC 2.5, but not available in earlier PBASIC,