项目作者: Superwaitsum

项目描述 :
GDNative Serial port communication
高级语言: C
项目地址: git://github.com/Superwaitsum/GDSercomm.git
创建时间: 2018-05-17T02:16:01Z
项目社区:https://github.com/Superwaitsum/GDSercomm

开源协议:MIT License

下载


GDSercomm

GDNative Serial port communication

Dependencies:

Contents:

Available functions:

  • open(port,baudrate,timeout,bytesz,parity, stop_byte)

  • (string) read()

  • (int) read(true) (Read raw value)

  • write(string)

  • get_available()

  • flush(queue)

  • list_ports()

  • close()

You can get extra info of a function using get_documentation(function_name) if you have a godot editor with nativescript1.1 support.

Building with scons:

You first need to add the dependencies to the main folder.
By default it will require a folder named “godot_headers” and a folder named “sercomm”
Add a compiled sercomm shared library (.dll , .so, .dylib) to the “lib” folder
Use the following command:

  1. scons p=platform

Note: At the moment on linux you need to copy the libsercomm.so to /usr/lib/ and run ldconfig