Raspbery Pi GPIO plugin
#3
Thanks!
Actually the method you described is quite exactly what the script is doing - looping through an array and checking each block/input and setting each output/block in the array in every OnWorldTick(). Actually the user can even specify blocks (with a golden shovel) and assign them to the array, but so far only a few are implemented to actually do something (although that can easily be changed in the script).
The powered state of block is a good idea - so far I have been substituting this with using a redstone torch on the block (makes nice blinking LEDs with a simple circuit Smile).

As to the require path - it would certainly make it easier than specifying the full path (as different Raspberries can run different OSes).

And is there any way of creating a plugin in C++? Or would I have to recompile the whole server to add some code? Also some OnBlockChange hook would help maybe.

----------------------------------------------------------------------------------------------------------------------------------------------------
Jejda, já tam nechal nějaký český komentáře?Big Grin Jsem to chtěl udělat čitelný i pro ostatní (ne-čechy), ale zvyk je zvyk Smile Jinak jo, jsem z ČR, konkrétně okolí Prahy.
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: 2 Guest(s)