user_config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef __USER_CONFIG_H__
  2. #define __USER_CONFIG_H__
  3. // #define DEVKIT_VERSION_0_9 1 // define this only if you use NodeMCU devkit v0.9
  4. // #define FLASH_512K
  5. // #define FLASH_1M
  6. // #define FLASH_2M
  7. // #define FLASH_4M
  8. // #define FLASH_8M
  9. // #define FLASH_16M
  10. #define FLASH_AUTOSIZE
  11. // #define DEVELOP_VERSION
  12. #define FULL_VERSION_FOR_USER
  13. #define USE_OPTIMIZE_PRINTF
  14. #ifdef DEVELOP_VERSION
  15. #define NODE_DEBUG
  16. #endif /* DEVELOP_VERSION */
  17. #define NODE_ERROR
  18. #ifdef NODE_DEBUG
  19. #define NODE_DBG c_printf
  20. #else
  21. #define NODE_DBG
  22. #endif /* NODE_DEBUG */
  23. #ifdef NODE_ERROR
  24. #define NODE_ERR c_printf
  25. #else
  26. #define NODE_ERR
  27. #endif /* NODE_ERROR */
  28. #define ICACHE_STORE_TYPEDEF_ATTR __attribute__((aligned(4),packed))
  29. #define ICACHE_STORE_ATTR __attribute__((aligned(4)))
  30. #define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
  31. #define CLIENT_SSL_ENABLE
  32. #define GPIO_INTERRUPT_ENABLE
  33. // #define BUILD_WOFS 1
  34. #define BUILD_SPIFFS 1
  35. // #define LUA_NUMBER_INTEGRAL
  36. #define LUA_OPTRAM
  37. #ifdef LUA_OPTRAM
  38. #define LUA_OPTIMIZE_MEMORY 2
  39. #else
  40. #define LUA_OPTIMIZE_MEMORY 0
  41. #endif /* LUA_OPTRAM */
  42. #define READLINE_INTERVAL 80
  43. #ifdef DEVKIT_VERSION_0_9
  44. #define KEY_SHORT_MS 200
  45. #define KEY_LONG_MS 3000
  46. #define KEY_SHORT_COUNT (KEY_SHORT_MS / READLINE_INTERVAL)
  47. #define KEY_LONG_COUNT (KEY_LONG_MS / READLINE_INTERVAL)
  48. #define LED_HIGH_COUNT_DEFAULT 10
  49. #define LED_LOW_COUNT_DEFAULT 0
  50. #endif
  51. // Configure U8glib fonts
  52. // add a U8G_FONT_TABLE_ENTRY for each font you want to compile into the image
  53. #define U8G_FONT_TABLE_ENTRY(font)
  54. #define U8G_FONT_TABLE \
  55. U8G_FONT_TABLE_ENTRY(font_6x10) \
  56. U8G_FONT_TABLE_ENTRY(font_chikita)
  57. #undef U8G_FONT_TABLE_ENTRY
  58. #endif /* __USER_CONFIG_H__ */