I suspect what I am trying is impossible.
I am storing data in 24lc256 chips and want to dump the data via sertxd as the result of a button press.
My initial thoughts were going to a dump_it subroutine on button press ->
but of course the terminal window does not pop up, and there is no way of checking the "G" anyway. Man 3 does say only during compilation.
Is it a case of pressing f8 first? I feel there is a more elegant solution.
I am storing data in 24lc256 chips and want to dump the data via sertxd as the result of a button press.
My initial thoughts were going to a dump_it subroutine on button press ->
Code:
dump_it:
#terminal 19200
setfreq m16
serout LCD,N2400_16,(254,1,254,1) 'clear screen
serout lcd,n2400_16,(254,128,"Prepare to dump memory")
serout lcd,n2400_16, (254,148," enter G in terminal")
serout lcd,n2400_16,(254,212," window when ready")
for b0=1 to 32
sertxd (#b0,cr,lf)
next b0
pause 20000
serout LCD,N2400_16,(254,1,254,1) 'clear screen
return
Is it a case of pressing f8 first? I feel there is a more elegant solution.