Commit 6ef7ece0 authored by Robert Foss's avatar Robert Foss
Browse files

Cleaned up APA102 module registration.

parent 0f3c0ffb
#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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment