LameSerial¶
Communicate with the LameStation from your computer.
ser : "LameSerial"
Functions¶
ser.Start¶
Start serial communication with the host computer at 115200 baud.
ser.Start
ser.StartRxTx¶
Start serial communication on any pins with any configuration.
ser.StartRxTx(rxpin, txpin, mode, baudrate)
-
rxpin - The pin for receiving data.
-
txpin - The pin for sending data.
-
baudrate - The port baud rate (usually 115200).
ser.Bin¶
Send an integer value as a binary number string.
ser.Bin(value, digits)
-
value - The integer to send.
-
digits - The number of digits in the resulting string.
ser.Char¶
Send one byte of data.
ser.Char(char_byte)
- char_byte - The ASCII character to send.
ser.CharIn¶
Receive one byte of data.
ser.CharIn
ser.Clear¶
Clear the remote terminal.
ser.Clear
ser.Count¶
Get count of characters in receive buffer.
ser.Count
ser.Dec¶
Send an integer value as a decimal number string.
ser.Dec(value)
- value - The integer to send.
ser.Flush¶
Empty the receive buffer.
ser.Flush
ser.Hex¶
Send an integer value as a hexadecimal number string.
ser.Hex(value, digits)
-
value - The integer to send.
-
digits - The number of digits in the resulting string.
ser.Str¶
Send a string.
ser.Str(stringptr)
- stringptr - The address of the string to send.