-
Notifications
You must be signed in to change notification settings - Fork 14
/
rpi-gpio-0.2-1.rockspec
47 lines (47 loc) · 1.24 KB
/
rpi-gpio-0.2-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package = "rpi-gpio"
version = "0.2-1"
source = {
url = "https://github.com/Tieske/rpi-gpio/archive/lua_version_0.2.tar.gz",
dir = "rpi-gpio-lua_version_0.2",
}
description = {
summary = "Lua module to control the GPIO on a Raspberry Pi",
detailed = [[
This package provides a Lua module to control the GPIO on a Raspberry Pi.
The main functionality is provided by the RPi.GPIO Python Module of Ben
Croston, and the Lua binding was continued upon the work of Andre Simon.
Additional modules migrated from Adafruit python code.
]],
homepage = "https://github.com/Tieske/rpi-gpio",
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.2",
"bit32",
"copastimer >= 1.0", -- pulls in copas, luasocket, coxpcall
}
build = {
type = "builtin",
modules = {
-- Main GPIO module
["GPIO"] = {
sources = {
"lua/RPi_GPIO_Lua_module.c",
"lua/darksidesync_aux.c",
"source/c_gpio.c",
"source/cpuinfo.c",
"source/event_gpio.c",
"source/soft_pwm.c",
},
libraries = {
"pthread"
},
incdirs = {
"source",
"lua",
},
},
-- additional Lua code files
["GPIO.lcd-hd44780"] = "lua/module/lcd-hd44780.lua",
},
}