Closed gustavohmsilva closed 5 years ago
I don't know about Lua 5.3, but I did just confirm that this module at least loads under Lua 5.2 on the Raspberry Pi 3 B+:
$ apt-get install lua5.2 lua5.2-dev
$ export LUA_INCDIR=/usr/include/lua5.2
$ make clean all
$ lua
> I2C = require 'periphery'.I2C
> print(I2C.version)
1.1.3
> i2c = I2C('/dev/i2c-1')
> junk = I2C('/dev/nonexistent')
Opening I2C device "/dev/nonexistent": No such file or directory [errno 2]
Lua5.2 usually generate problems with much of the other libs around, that normally focus on being =5.1 or >5.2.
I had problems with 5.3 for this library, unfortunately.
lua-periphery supports Lua 5.1 (including LuaJIT), Lua 5.2, and Lua 5.3. What problems did you have with 5.3?
Closing for now, let me know if anyone has issues running on >= Lua 5.1. My regular test environment is with Lua 5.3 on a Raspberry Pi 3.
Hi, is it compatible with Is it compatible with Lua 5.3 and Rasp Pi 3 B+?
Documentation don't mention version of boards, so I'm a little bit lost regarding this.