LUALIB_API int luaopen_os (lua_State *L) { LREGISTER(L, LUA_OSLIBNAME, syslib); }
LUALIB_API int luaopen_disp( lua_State *L ) { LREGISTER( L, AUXLIB_DISP, disp_map ); }
LUALIB_API int luaopen_adc( lua_State *L ) { LREGISTER( L, AUXLIB_ADC, adc_map ); }
LUALIB_API int luaopen_table (lua_State *L) { LREGISTER(L, LUA_TABLIBNAME, tab_funcs); }
LUALIB_API int luaopen_stm32_cpu( lua_State *L ) { LREGISTER( L, AUXLIB_STM32_CPU, stm32_cpu_map ); }
LUALIB_API int luaopen_ws2812(lua_State *L) { // TODO: Make sure that the GPIO system is initialized LREGISTER(L, "ws2812", ws2812_map); return 1; }
LUALIB_API int luaopen_enc( lua_State *L ) { LREGISTER( L, AUXLIB_ENC, enc_map ); }
LUALIB_API int luaopen_pd( lua_State* L ) { LREGISTER( L, AUXLIB_PD, pd_map ); }
//LUALIB_API int luaopen_ultra(lua_State *L) { LUALIB_API int luaopen_rc(lua_State *L) { // TODO: Make sure that the GPIO system is initialized LREGISTER(L, "rc", rc_map); return 1; }
LUALIB_API int luaopen_debug (lua_State *L) { LREGISTER(L, LUA_DBLIBNAME, dblib); }
LUALIB_API int luaopen_sha1( lua_State *L ) { LREGISTER( L, "sha1", sha1_map ); }
LUALIB_API int ICACHE_FLASH_ATTR luaopen_table (lua_State *L) { LREGISTER(L, LUA_TABLIBNAME, tab_funcs); }
LUALIB_API int luaopen_pwm( lua_State *L ) { LREGISTER( L, AUXLIB_PWM, pwm_map ); }
LUALIB_API int luaopen_hx711(lua_State *L) { // TODO: the below todo was inherited from the ws2812 code but is still valid. // TODO: Make sure that the GPIO system is initialized LREGISTER(L, "hx711", hx711_map); return 1; }
LUALIB_API int luaopen_apa102(lua_State *L) { LREGISTER(L, "apa102", apa102_map); return 0; }