Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4792f1bb
Commit
4792f1bb
authored
Jan 26, 2016
by
Arnim Läuger
Browse files
Merge pull request #978 from robertfoss/apa102_cleanup
Cleaned up APA102 module registration.
parents
51352ed7
6ef7ece0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/apa102.c
View file @
4792f1bb
#include "c_stdlib.h"
#include "c_string.h"
#include "lualib.h"
#include "lauxlib.h"
#include "platform.h"
#include "lrotable.h"
#include "
c_stdlib
.h"
#include "
c_string
.h"
#include "
module
.h"
#include "
platform
.h"
#include "user_interface.h"
...
...
@@ -100,8 +101,6 @@ static int apa102_write(lua_State* L) {
}
#define MIN_OPT_LEVEL 2
#include "lrodefs.h"
const
LUA_REG_TYPE
apa102_map
[]
=
{
{
LSTRKEY
(
"write"
),
LFUNCVAL
(
apa102_write
)},
...
...
@@ -110,5 +109,7 @@ const LUA_REG_TYPE apa102_map[] =
LUALIB_API
int
luaopen_apa102
(
lua_State
*
L
)
{
LREGISTER
(
L
,
"apa102"
,
apa102_map
);
return
1
;
return
0
;
}
NODEMCU_MODULE
(
APA102
,
"apa102"
,
apa102_map
,
luaopen_apa102
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment