[Gambas-user] Gambas Scripting Problem
Benoit Minisini
gambas at ...1...
Tue Sep 16 11:07:17 CEST 2008
On mardi 16 septembre 2008, Arief Bayu Purwanto wrote:
> -----------------
> ' Gambas module file
>
> DIM Sport AS NEW SerialPort
>
> Sport.Speed = "115200"
> Sport.PortName = "/dev/ttyUSB0"
> Sport.Parity = 0
> Sport.DataBits = "8"
> Sport.StopBits = "1"
> ' keep DTR on
> Sport.FlowControl = 0
> Sport.Open()
>
>
> PRINT Sport.DSR
> PRINT Sport.DTR
> PRINT Sport.CTS
> PRINT Sport.RTS
> PRINT Sport.DCD
> PRINT Sport.RNG
> ---------------
> that's all.
>
> Nothing more. I just want to test open the SerialPort before move to actual
> development.
>
Try to put "USE gb.net" at the beginning of the script, to tell the scripter
that the gb.net component is needed.
Regards,
--
Benoit Minisini
More information about the User
mailing list