2015-03-06 11:59:04 +08:00
|
|
|
#ifndef __USER_MODULES_H__
|
|
|
|
#define __USER_MODULES_H__
|
|
|
|
|
2015-03-06 15:55:24 +08:00
|
|
|
#define LUA_USE_BUILTIN_STRING // for string.xxx()
|
|
|
|
#define LUA_USE_BUILTIN_TABLE // for table.xxx()
|
|
|
|
#define LUA_USE_BUILTIN_COROUTINE // for coroutine.xxx()
|
2015-03-18 14:22:17 +08:00
|
|
|
#define LUA_USE_BUILTIN_MATH // for math.xxx(), partially work
|
2015-03-06 15:55:24 +08:00
|
|
|
// #define LUA_USE_BUILTIN_IO // for io.xxx(), partially work
|
|
|
|
|
|
|
|
// #define LUA_USE_BUILTIN_OS // for os.xxx(), not work
|
2015-08-31 12:18:57 +01:00
|
|
|
// #define LUA_USE_BUILTIN_DEBUG
|
|
|
|
#define LUA_USE_BUILTIN_DEBUG_MINIMAL // for debug.getregistry() and debug.traceback()
|
2015-03-06 15:55:24 +08:00
|
|
|
|
2015-09-01 06:11:36 +01:00
|
|
|
#ifndef LUA_CROSS_COMPILER
|
2015-03-06 11:59:04 +08:00
|
|
|
|
2016-03-01 23:15:03 +01:00
|
|
|
// The default configuration is designed to run on all ESP modules including the 512 KB modules like ESP-01 and only
|
|
|
|
// includes general purpose interface modules which require at most two GPIO pins.
|
|
|
|
// See https://github.com/nodemcu/nodemcu-firmware/pull/1127 for discussions.
|
|
|
|
// New modules should be disabled by default and added in alphabetical order.
|
2015-03-06 11:59:04 +08:00
|
|
|
#define LUA_USE_MODULES_ADC
|
2017-05-07 09:49:57 +02:00
|
|
|
//#define LUA_USE_MODULES_ADS1115
|
2016-06-05 13:59:55 -07:00
|
|
|
//#define LUA_USE_MODULES_ADXL345
|
2016-02-13 12:57:19 +01:00
|
|
|
//#define LUA_USE_MODULES_AM2320
|
2015-12-09 16:35:50 -05:00
|
|
|
//#define LUA_USE_MODULES_APA102
|
2015-03-06 11:59:04 +08:00
|
|
|
#define LUA_USE_MODULES_BIT
|
2015-11-19 22:48:05 +01:00
|
|
|
//#define LUA_USE_MODULES_BMP085
|
2016-02-07 14:26:43 +01:00
|
|
|
//#define LUA_USE_MODULES_BME280
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_COAP
|
2016-12-26 16:19:12 +03:00
|
|
|
//#define LUA_USE_MODULES_CRON
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_CRYPTO
|
2015-06-18 16:31:40 +08:00
|
|
|
#define LUA_USE_MODULES_DHT
|
2017-08-16 21:04:23 +02:00
|
|
|
//#define LUA_USE_MODULES_DS18B20
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_ENCODER
|
2015-11-19 22:48:05 +01:00
|
|
|
//#define LUA_USE_MODULES_ENDUSER_SETUP // USE_DNS in dhcpserver.h needs to be enabled for this module to work.
|
|
|
|
#define LUA_USE_MODULES_FILE
|
2016-09-20 21:38:12 -04:00
|
|
|
//#define LUA_USE_MODULES_GDBSTUB
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_GPIO
|
2017-04-20 23:23:51 +03:00
|
|
|
//#define LUA_USE_MODULES_HDC1080
|
2016-06-05 13:59:39 -07:00
|
|
|
//#define LUA_USE_MODULES_HMC5883L
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_HTTP
|
2015-11-19 22:48:05 +01:00
|
|
|
//#define LUA_USE_MODULES_HX711
|
|
|
|
#define LUA_USE_MODULES_I2C
|
2016-06-05 14:00:37 -07:00
|
|
|
//#define LUA_USE_MODULES_L3G4200D
|
2017-05-21 07:30:26 -07:00
|
|
|
//#define LUA_USE_MODULES_MCP4725
|
2016-01-27 21:57:58 -05:00
|
|
|
//#define LUA_USE_MODULES_MDNS
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_MQTT
|
|
|
|
#define LUA_USE_MODULES_NET
|
|
|
|
#define LUA_USE_MODULES_NODE
|
|
|
|
#define LUA_USE_MODULES_OW
|
2016-06-05 23:21:36 +02:00
|
|
|
//#define LUA_USE_MODULES_PCM
|
2016-02-21 15:12:13 -05:00
|
|
|
//#define LUA_USE_MODULES_PERF
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_PWM
|
|
|
|
//#define LUA_USE_MODULES_RC
|
2016-12-02 03:19:01 +06:00
|
|
|
//#define LUA_USE_MODULES_RFSWITCH
|
2016-02-28 14:48:41 -05:00
|
|
|
//#define LUA_USE_MODULES_ROTARY
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_RTCFIFO
|
|
|
|
//#define LUA_USE_MODULES_RTCMEM
|
|
|
|
//#define LUA_USE_MODULES_RTCTIME
|
2017-04-27 23:16:33 +02:00
|
|
|
//#define LUA_USE_MODULES_SI7021
|
2016-01-31 21:48:59 +01:00
|
|
|
//#define LUA_USE_MODULES_SIGMA_DELTA
|
2017-03-21 20:24:32 -04:00
|
|
|
//#define LUA_USE_MODULES_SJSON
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_SNTP
|
2016-10-14 00:49:58 +02:00
|
|
|
//#define LUA_USE_MODULES_SOMFY
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_SPI
|
2016-02-12 12:15:36 -05:00
|
|
|
//#define LUA_USE_MODULES_STRUCT
|
2016-06-26 08:19:06 -04:00
|
|
|
//#define LUA_USE_MODULES_SWITEC
|
2017-04-20 04:16:27 +10:00
|
|
|
// #define LUA_USE_MODULES_TCS34725
|
2016-06-03 23:47:36 +02:00
|
|
|
//#define LUA_USE_MODULES_TM1829
|
2016-12-31 15:14:03 +03:00
|
|
|
#define LUA_USE_MODULES_TLS
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_TMR
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_TSL2561
|
|
|
|
//#define LUA_USE_MODULES_U8G
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_UART
|
|
|
|
//#define LUA_USE_MODULES_UCG
|
2016-08-18 12:59:44 +01:00
|
|
|
//#define LUA_USE_MODULES_WEBSOCKET
|
2015-11-19 22:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_WIFI
|
2017-01-09 08:43:47 +01:00
|
|
|
//#define LUA_USE_MODULES_WPS
|
2015-11-19 22:48:05 +01:00
|
|
|
//#define LUA_USE_MODULES_WS2801
|
2016-03-01 23:15:03 +01:00
|
|
|
//#define LUA_USE_MODULES_WS2812
|
2017-03-09 07:20:01 +01:00
|
|
|
//#define LUA_USE_MODULES_XPT2046
|
2015-06-11 18:07:16 -04:00
|
|
|
|
2015-12-16 16:04:58 +11:00
|
|
|
#endif /* LUA_CROSS_COMPILER */
|
2015-03-06 11:59:04 +08:00
|
|
|
#endif /* __USER_MODULES_H__ */
|