Git Product home page Git Product logo

serial_port's Introduction

serial_port

A godot extension support serial port communication.

If want build it as a module, switch to the module branch.

Usage:

  1. Clone and build the plugin.
git clone -b plugin https://github.com/matrixant/serial_port.git --recursive
cd serial_port
scons --sconstruct=gdextension_build/SConstruct target=template_debug

The plugin things will be build to gdextension_build/example/addons/serialport directory.

  1. The SerialPort class will add to godot. You can new a SerialPort object and set it's 'port', 'baudrate', 'bytesize' and so on. Then open it and communicate with your serial device.

  2. There is an example in serial_port_example repo.

example

serial_port's People

Contributors

matrixant avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

serial_port's Issues

Compiling problem on linux with the 4.1 update

I've been using your fantastic module in a project, compiled in as a module rather than a plugin. With the latest commit to the repo it's no longer compiling successfully for me -- have any of the requirements or build instructions changed? I didn't see any changes to the readme about those things in the commit. I did notice that 2 of the submodule repos changed; that's what has me wondering if I need any new pre-reqs or anything.

I'll attach the compile output from where it started to go wrong.

compile_output.txt

typo in plugin install instructions

in the readme, the line for creating plugin:
scons --sconstruct=gdextension_build/SConstruct target=template_debug

the sconstruct filename should have a lowercase 'c':
scons --sconstruct=gdextension_build/Sconstruct target=template_debug

Either that, or the filename for the script should be changed to uppercase C

I tried but not managed to working...

Hello. Thank you for your wonderful add-on!
Sorry, I am completely noob with these compiling things.
But, I need to use serial with Godot 4, I tried to compile the add-on.
I think I managed to compile as "plugin", but Godot 4.1 give me the error.
(serialport.windows.template_debug.x86_64.dll and other two files are generated in bin folder.)

core/extension/gdextension.cpp:593 - GDExtension configuration file must contain a "configuration/compatibility_minimum" key: res://addons/serialport/serialport.gdextension
Failed loading resource: res://addons/serialport/serialport.gdextension. Make sure resources have been imported by opening the project in the editor at least once.

Is there way to fix this, and get it working?
I apologies my lack of knowledge, Please help me.

gdextension file

The generated gdextension seems to have two Major bugs.

  1. its missing "compatibility_minimum" key (Godot throws errors if not set).
  2. the "entry_symbol" key value is wrong, it generated a mismatched func name "serial_port_library_init" but in the source file the func is labeled "serialport_lib_init".

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.