Raspbery Pi GPIO plugin
#1
Hi all!
I have created a small plugin to control your Raspberry's GPIOs from Minecraft!
You can use levers, buttons or torches as inputs or outputs to your pins and as a bonus there are self-updating signs that display some info about your Raspberry, which you can use.
More info on https://github.com/matemat13/MCserver-RaspberryGPIO.
A short (and ugly) video of it at work: http://www.youtube.com/watch?v=Y1ErAeNBC_0

It isn't the fastest thing on earth (although still usable without problems), more of a proof of concept, but if you have any suggestions or even want to contribute, I would be very glad!
I even wrote a C module for the Lua to speed it up but it seems even a bit slower (probably because of the C to Lua interface)...
It should be pretty easy to add more blocks and functionality by editing the Luas or the C module source code (whichever you choose to use).

Hope you guys like it!

By the way is there no API for creating plugins in C/C++? That could help quite a lot with the performance issues.
Other thing which could help would be rewriting this to be completely event-based (write rising and falling edge interrupts for the input pins in C and link them to Lua events or something, use OnPlayerUsedBlock for outputs like levers and buttons), but problem is with blocks like redstone torches, which have no event on change from active to inactive and vice versa... Any suggestions are welcome.
Reply
Thanks given by:


Messages In This Thread
Raspbery Pi GPIO plugin - by Matouš - 02-13-2014, 08:33 PM
RE: Raspbery Pi GPIO plugin - by xoft - 02-13-2014, 10:06 PM
RE: Raspbery Pi GPIO plugin - by Matouš - 02-13-2014, 10:46 PM
RE: Raspbery Pi GPIO plugin - by xoft - 02-14-2014, 12:00 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 02-14-2014, 02:56 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-14-2014, 04:32 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-14-2014, 04:55 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-14-2014, 06:34 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-14-2014, 10:13 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-15-2014, 03:10 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 02-15-2014, 03:45 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-15-2014, 06:20 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-15-2014, 09:16 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 02-16-2014, 02:13 AM
RE: Raspbery Pi GPIO plugin - by NiLSPACE - 02-16-2014, 02:16 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-16-2014, 02:18 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-16-2014, 02:27 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-18-2014, 08:14 AM
RE: Raspbery Pi GPIO plugin - by xoft - 03-02-2014, 03:25 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 03-02-2014, 04:14 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 03-02-2014, 05:11 AM
RE: Raspbery Pi GPIO plugin - by xoft - 03-02-2014, 05:19 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 03-02-2014, 05:55 AM
RE: Raspbery Pi GPIO plugin - by xoft - 04-25-2014, 04:13 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 04-25-2014, 04:17 AM
RE: Raspbery Pi GPIO plugin - by xoft - 04-25-2014, 06:47 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 04-25-2014, 07:34 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 04-26-2014, 06:36 AM
RE: Raspbery Pi GPIO plugin - by mieciu0077 - 06-01-2016, 05:51 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 06-01-2016, 06:41 AM



Users browsing this thread: 1 Guest(s)