Hi
On a recient thread I posted Hippy wrote a macro for a word variable
I have tried to represent it for use with just a single variable but it will not
pass syntax.
I have reread Hippys post on using macros but can not see why it will not work
but the word one does
PICAXE Macros
is it not possible for some reason that the use of var in this instance is not allowed
regards john
On a recient thread I posted Hippy wrote a macro for a word variable
I have tried to represent it for use with just a single variable but it will not
pass syntax.
I have reread Hippys post on using macros but can not see why it will not work
but the word one does
PICAXE Macros
Code:
symbol double=w12
symbol single=b8
symbol QT=34
#Macro SerTxdNumber( wVar )
BinToAscii wVar, b0,b1,b2,b3,b4
If b0 = "0" Then
b0 = " "
End If
hserout 0,(QT,b0,b1,".",b2,b3,b4,QT,$ff,$ff,$ff)
hserflag=0
hserptr=0
#EndMacro
#Macro Singular ( var )
hserout 0,(QT,#var,QT,$ff,$ff,$ff)
hserflag=0
hserptr=0
#EndMacro
hsersetup B9600_8, %01
double=1023
single=40
do
hserout 0,("double.txt=")SerTxdNumber(double)
hserout 0,("single.txt=") Singular (single)
loop
regards john