paulhuxley@tgs.kent.sch.uk
New Member
Any plans to introduce Rfid reading capability for PICAXE?
setfreq m8
main:
serin pin, N9600_8, ($02), b0,b1,b2,b3,b4,b5,b6,b7, b8, b9
debug
goto main
#Picaxe14M
#Terminal 9600
Pause 2000
SetFreq M8
SerTxd( "Starting", CR, LF )
b1 = $FF
Do
b0 = pin0
If b0 <> b1 Then
b1 = b0
SerTxd( #b0 )
End If
Loop
#Picaxe14M
#Terminal 9600
Pause 2000
SetFreq M8
SerTxd( "Starting", CR, LF )
Do
SerIn 0, N9600_8, b0
SerTxd( "Got Something = ", #b0, CR, LF )
Loop
#Picaxe14M
#Terminal 9600
Pause 2000
SetFreq M8
SerTxd( "Starting", CR, LF )
Do
SerIn 0, N9600_8, ( $02 )
SerTxd( "Got STX", CR, LF )
Loop
Also because the default clock speed was changed and so the debug data was at the wrong speed. Change as Hippy suggests (so that only serin runs at double speed) and debug should also start working.Thanks, Hippy. I tried this program out, adding a 'Debug' cell into the loop after the 'Display Barcode' Basic cell. Unfortunatley nothing appeared in the Debug window.