lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 28, 2014 at 8:22 PM, djczaski <djczaski@gmail.com> wrote:
> We use LuaJIT, particularly for the FFI, so we are stuck with 5.1. I suppose
> this will be an on going problem as the two projects diverge.
>

Mike Pall wrote a FFI-based GPIO module for the Raspberry Pi, which
takes 105 lines of code including comments, white space and a short
example.

http://lua-users.org/lists/lua-l/2012-04/msg01122.html

It could be used as a template for other IO peripherals.

—Pierre-Yves