Dr Acula has a really great introduction to controlling devices in an instructibles article http://www.instructables.com/id/Control-real-world-devices-with-your-PC/
and I am working through this. I want to do the same thing but use liberty basic rather than visual basic at the pc end. Liberty basic has a standard port control command:
open "com1:9600,n,8,1,ds0,cs0,rs" for random as #com.
to write to the port, the manual says just use
print #com "hello world"
This is fine for strings but the serin command for the receiving picaxe would be something like
serin 3,("data"),b0
So here is my query. How can I send the b0 part? DrAcula uses a byte declared variable and , I think, turns d,a,t,a, into asci numbers, attaching them to the b0 byte before sending. This does not seem available in liberty basic. I'm not sure how to begin here - I don't quite know how the picaxe interprets what's coming in.
Any advice would be gratefully received.
deneve
and I am working through this. I want to do the same thing but use liberty basic rather than visual basic at the pc end. Liberty basic has a standard port control command:
open "com1:9600,n,8,1,ds0,cs0,rs" for random as #com.
to write to the port, the manual says just use
print #com "hello world"
This is fine for strings but the serin command for the receiving picaxe would be something like
serin 3,("data"),b0
So here is my query. How can I send the b0 part? DrAcula uses a byte declared variable and , I think, turns d,a,t,a, into asci numbers, attaching them to the b0 byte before sending. This does not seem available in liberty basic. I'm not sure how to begin here - I don't quite know how the picaxe interprets what's coming in.
Any advice would be gratefully received.
deneve