[Gambas-user] Gambas Scripting Problem
Fabien Bodard
gambas.fr at ...626...
Tue Sep 16 21:11:41 CEST 2008
#!/usr/bin/env gbs3
USE gb.net
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
It work fine !
but the code is bad lol not abke to open serial port ... i've not
investigate about this
More information about the User
mailing list