PICAXE 18X and serin

Hi all,

whats the correct serin command ro read serial data with picaxe 18x via pin nr. 15 (Input 6 / keybord clock)?

serin 6,n9600_8,b0, ..... ???

To read the status of that pin i can use
if input6 = 1 then .......

But if i use
serin input6,n9600_8, b0, ....
i get a compiler error.

Thank you for help!
 

hippy

Ex-Staff (retired)
Yes, "SERIN 6, ...." is correct. The 'input6' is a variable which holds what value is on input pin 6 ( 0 or 1, low or high ) not a reference to the pin itself which is why the syntax error occurs.
 
Top