#!/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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to