Syntax prob. with serin with timeout address

cachomachine

Senior Member
I get an syntax error with the following line
Serin 100,main,c.1,T9600_32,b0,b1,b2,b3,b4,b5
How should i write it?
 

AllyCat

Senior Member
Hi,

It must be much quicker to click on the "Basic Commands" tab at the top of the forum page (or use Manual 2) than to start a new thread and wait for a reply!

There you will see that the timeout and address need to be enclosed in square braces [ ] .

Cheers, Alan.
 

srnet

Senior Member
In a lot of systems square brackets in command options do mean optional items (not requiring the actual typing of square brackets) so when the appear in the listing of a PICAXE command, I can undestand why its not clear as to whether they should actually be typed or not.

In the listing of the Serin command there are 3 bracket types;

[ { (

Two of them must be typed, one must not.
 

cachomachine

Senior Member
Yes that was my understanding that the brackets meant optional, now i will know that they are required
The examples given in the serin explanations in manual2 should show an example of optional case.
 
Top