Page 1 of 1
Love2D "Serial Port Communication"
Posted: Fri Mar 04, 2016 12:07 am
by BruceTheGoose
I managed to interface my Arduino Uno with Love2D with a bit of Java.
Here is a demo:
https://www.youtube.com/watch?v=LVhdxpY ... e=youtu.be
Re: Love2D "Serial Port Communication"
Posted: Fri Mar 04, 2016 7:24 pm
by Davidobot
Really cool stuff right here!
Any walk-throughs of how to do this?
Re: Love2D "Serial Port Communication"
Posted: Sat Mar 05, 2016 12:16 am
by BruceTheGoose
Davidobot wrote:Really cool stuff right here!
Any walk-throughs of how to do this?
I'll make one later. Stay tuned!
Re: Love2D "Serial Port Communication"
Posted: Wed Apr 13, 2016 7:20 pm
by SPlice
I have been hoping they would add serial support to love. I am told that it can be done with IO or something but I have never gotten it to work without the middleman program to read the serial data and send it through UDP to love.
Re: Love2D "Serial Port Communication"
Posted: Wed Apr 27, 2016 8:06 pm
by cval
As a microcontroller enthusiast i'm interested in this kind of thing. Does it use ffi? Or love script communicates to some other application as client?
Re: Love2D "Serial Port Communication"
Posted: Sun Jul 03, 2016 10:12 pm
by Nathan1852
You might want to take a look at this:
https://github.com/cbrake/LuaSerialPort
It worked perfectly for me
Re: Love2D "Serial Port Communication"
Posted: Mon Jul 04, 2016 5:07 pm
by cval
Well, so it actually depends on FFI doesn't it? (=
And with Java mentioned i thought that Java-coded application sits on a VCP (that is created by USB-TTL chip on an Arduino) and then sends data over network to love2d. Nice anyway, i'm thinking about making some kind of IRL HUD for a game or maybe something else.
Re: Love2D "Serial Port Communication"
Posted: Tue Jul 12, 2016 4:47 am
by Positive07
I found
this library which works amazingly well, I had to make some changes to compile it, since the associated dll for Lua didn't have the same name as LÖVE's one but it was not that hard, I have an outdated .dll somewhere if someone is interested, and I would love to have an updated version since I would found it really useful