Cleaned up APA102 module registration.

This commit is contained in:
Robert Foss 2016-01-26 17:14:19 -05:00
parent 0f3c0ffbb0
commit 6ef7ece046
1 changed files with 8 additions and 7 deletions

View File

@ -1,9 +1,10 @@
#include "lualib.h"
#include "lauxlib.h"
#include "platform.h"
#include "lrotable.h"
#include "c_stdlib.h"
#include "c_string.h"
#include "lualib.h"
#include "lauxlib.h"
#include "lrotable.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);