Giter Site home page Giter Site logo

superwaitsum / gdserialasset Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 2.0 401 KB

Asset with a serial communication example and helper functions for godot engine

License: MIT License

GAP 43.33% GDScript 56.67%
godot-engine godot3 serial-communication gdnative serial-monitor

gdserialasset's Introduction

GDSerialAsset

Asset with a serial communication example and helper functions for godot engine

Contains:

  • A helper script with some useful variables and simple readline(port) read function.
  • A serial monitor example.
  • DLL's for Windows 32 and 64 bits. (32 bits is not updated)
  • SO for linux 64 bits. (Feedback Welcome)

Note for linux64 : You have to copy libsercomm.so to /usr/lib and run ldconfig

Serial library can be compiled from: https://github.com/Superwaitsum/GDSercomm)

Screenshot

An example of the monitor after sending text

Note: At exporting, is needed to add sercomm.dll (32 or 64 bits version) to the executable directory

gdserialasset's People

Contributors

superwaitsum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gdserialasset's Issues

Could not open port: Invalid number of stop bits on Godot 3.1.1 Ubuntu 18.04

When running the example project in Godot 3.1.1 on Ubuntu 18.04
I get the message "Could not open port: Invalid number of stop bits" in terminal

I worked around it by adding the first values from Com.gd to corresponding parameter for the Open() function at line 33 in SimpleConsole.gd.

From this:
PORT.open(port,int($OptionButton.get_item_text(ID)),1000)
to this:
PORT.open(port,int($OptionButton.get_item_text(ID)),1000,com.bytesz.SER_BYTESZ_8, com.parity.SER_PAR_NONE, com.stopbyte.SER_STOPB_ONE)

To reproduce:

  • Run Godot from terminal
  • Open GDSerialAsset project
  • Try to connect to port "/dev/ttyACM0" with baudrate 9600

Error messages in Godot 3.1

Godot 3.1
Windows 10

Thanks for this code! It's working fine. However, there are some error messages:

modules/gdnative/gdnative.cpp:488 - No valid library handle, can't get symbol from GDNative object
modules/gdnative/gdnative.cpp:393 - No valid library handle, can't terminate GDNative object

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.