Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1232 lines
35 KiB

7 years ago
7 years ago
  1. // -----------------------------------------------------------------------------
  2. // Configuration HELP
  3. // -----------------------------------------------------------------------------
  4. //
  5. // MANUFACTURER: Name of the manufacturer of the board ("string")
  6. // DEVICE: Name of the device ("string")
  7. // BUTTON#_PIN: GPIO for the n-th button (1-based, up to 4 buttons)
  8. // BUTTON#_RELAY: Relay number that will be bind to the n-th button (1-based)
  9. // BUTTON#_MODE: A mask of options (BUTTON_PUSHBUTTON and BUTTON_SWITCH cannot be together)
  10. // - BUTTON_PUSHBUTTON: button event is fired when released
  11. // - BUTTON_SWITCH: button event is fired when pressed or released
  12. // - BUTTON_DEFAULT_HIGH: there is a pull up in place
  13. // - BUTTON_SET_PULLUP: set pullup by software
  14. // RELAY#_PIN: GPIO for the n-th relay (1-based, up to 4 relays)
  15. // RELAY#_TYPE: Relay can be RELAY_TYPE_NORMAL, RELAY_TYPE_INVERSE or RELAY_TYPE_LATCHED
  16. // RELAY#_LED: LED number that will be bind to the n-th relay (1-based)
  17. // LED#_PIN: GPIO for the n-th LED (1-based, up to 4 LEDs)
  18. // LED#_PIN_INVERSE: LED has inversed logic (lit when pulled down)
  19. //
  20. // Besides, other hardware specific information should be stated here
  21. // -----------------------------------------------------------------------------
  22. // Development boards
  23. // -----------------------------------------------------------------------------
  24. #if defined(NODEMCU_LOLIN)
  25. // Info
  26. #define MANUFACTURER "NODEMCU"
  27. #define DEVICE "LOLIN"
  28. // Buttons
  29. #define BUTTON1_PIN 0
  30. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  31. #define BUTTON1_RELAY 1
  32. // Relays
  33. #define RELAY1_PIN 12
  34. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  35. // LEDs
  36. #define LED1_PIN 2
  37. #define LED1_PIN_INVERSE 1
  38. #elif defined(WEMOS_D1_MINI_RELAYSHIELD)
  39. // Info
  40. #define MANUFACTURER "WEMOS"
  41. #define DEVICE "D1_MINI_RELAYSHIELD"
  42. // Buttons
  43. // No buttons on the D1 MINI
  44. // Relays
  45. #define RELAY1_PIN 5
  46. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  47. // LEDs
  48. #define LED1_PIN 2
  49. #define LED1_PIN_INVERSE 1
  50. // -----------------------------------------------------------------------------
  51. // ESPurna
  52. // -----------------------------------------------------------------------------
  53. #elif defined(TINKERMAN_ESPURNA_H06)
  54. // Info
  55. #define MANUFACTURER "TINKERMAN"
  56. #define DEVICE "ESPURNA_H06"
  57. // Buttons
  58. #define BUTTON1_PIN 4
  59. #define BUTTON1_RELAY 1
  60. #ifdef USE_TOUCH_BUTTON
  61. // Touch button
  62. #define BUTTON1_MODE BUTTON_PUSHBUTTON
  63. #define BUTTON1_PRESS BUTTON_MODE_TOGGLE
  64. #define BUTTON1_CLICK BUTTON_MODE_NONE
  65. #define BUTTON1_DBLCLICK BUTTON_MODE_NONE
  66. #define BUTTON1_LNGCLICK BUTTON_MODE_NONE
  67. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE
  68. #else
  69. // Normal pushbutton
  70. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  71. #endif
  72. // Relays
  73. #define RELAY1_PIN 12
  74. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  75. // LEDs
  76. #define LED1_PIN 5
  77. #define LED1_PIN_INVERSE 0
  78. // HLW8012
  79. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  80. #define HLW8012_SEL_PIN 2
  81. #define HLW8012_CF1_PIN 13
  82. #define HLW8012_CF_PIN 14
  83. #elif defined(TINKERMAN_ESPURNA_H07)
  84. // Info
  85. #define MANUFACTURER "TINKERMAN"
  86. #define DEVICE "ESPURNA_H07"
  87. // Buttons
  88. #define BUTTON1_PIN 4
  89. #define BUTTON1_RELAY 1
  90. #ifdef USE_TOUCH_BUTTON
  91. // Touch button
  92. #define BUTTON1_MODE BUTTON_PUSHBUTTON
  93. #define BUTTON1_PRESS BUTTON_MODE_TOGGLE
  94. #define BUTTON1_CLICK BUTTON_MODE_NONE
  95. #define BUTTON1_DBLCLICK BUTTON_MODE_NONE
  96. #define BUTTON1_LNGCLICK BUTTON_MODE_NONE
  97. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE
  98. #else
  99. // Normal pushbutton
  100. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  101. #endif
  102. // Relays
  103. #define RELAY1_PIN 12
  104. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  105. // LEDs
  106. #define LED1_PIN 2
  107. #define LED1_PIN_INVERSE 0
  108. // HLW8012
  109. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  110. #define HLW8012_SEL_PIN 5
  111. #define HLW8012_CF1_PIN 13
  112. #define HLW8012_CF_PIN 14
  113. // -----------------------------------------------------------------------------
  114. // Itead Studio boards
  115. // -----------------------------------------------------------------------------
  116. #elif defined(ITEAD_SONOFF_BASIC)
  117. // Info
  118. #define MANUFACTURER "ITEAD"
  119. #define DEVICE "SONOFF_BASIC"
  120. // Buttons
  121. #define BUTTON1_PIN 0
  122. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  123. #define BUTTON1_RELAY 1
  124. // Relays
  125. #define RELAY1_PIN 12
  126. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  127. // LEDs
  128. #define LED1_PIN 13
  129. #define LED1_PIN_INVERSE 1
  130. #elif defined(ITEAD_SONOFF_RF)
  131. // Info
  132. #define MANUFACTURER "ITEAD"
  133. #define DEVICE "SONOFF_RF"
  134. // Buttons
  135. #define BUTTON1_PIN 0
  136. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  137. #define BUTTON1_RELAY 1
  138. // Relays
  139. #define RELAY1_PIN 12
  140. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  141. // LEDs
  142. #define LED1_PIN 13
  143. #define LED1_PIN_INVERSE 1
  144. #elif defined(ITEAD_SONOFF_TH)
  145. // Info
  146. #define MANUFACTURER "ITEAD"
  147. #define DEVICE "SONOFF_TH"
  148. // Buttons
  149. #define BUTTON1_PIN 0
  150. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  151. #define BUTTON1_RELAY 1
  152. // Relays
  153. #define RELAY1_PIN 12
  154. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  155. // LEDs
  156. #define LED1_PIN 13
  157. #define LED1_PIN_INVERSE 1
  158. #elif defined(ITEAD_SONOFF_SV)
  159. // Info
  160. #define MANUFACTURER "ITEAD"
  161. #define DEVICE "SONOFF_SV"
  162. // Buttons
  163. #define BUTTON1_PIN 0
  164. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  165. #define BUTTON1_RELAY 1
  166. // Relays
  167. #define RELAY1_PIN 12
  168. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  169. // LEDs
  170. #define LED1_PIN 13
  171. #define LED1_PIN_INVERSE 1
  172. #elif defined(ITEAD_SLAMPHER)
  173. // Info
  174. #define MANUFACTURER "ITEAD"
  175. #define DEVICE "SLAMPHER"
  176. // Buttons
  177. #define BUTTON1_PIN 0
  178. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  179. #define BUTTON1_RELAY 1
  180. // Relays
  181. #define RELAY1_PIN 12
  182. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  183. // LEDs
  184. #define LED1_PIN 13
  185. #define LED1_PIN_INVERSE 1
  186. #elif defined(ITEAD_S20)
  187. // Info
  188. #define MANUFACTURER "ITEAD"
  189. #define DEVICE "S20"
  190. // Buttons
  191. #define BUTTON1_PIN 0
  192. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  193. #define BUTTON1_RELAY 1
  194. // Relays
  195. #define RELAY1_PIN 12
  196. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  197. // LEDs
  198. #define LED1_PIN 13
  199. #define LED1_PIN_INVERSE 1
  200. #elif defined(ITEAD_SONOFF_TOUCH)
  201. // Info
  202. #define MANUFACTURER "ITEAD"
  203. #define DEVICE "SONOFF_TOUCH"
  204. // Buttons
  205. #define BUTTON1_PIN 0
  206. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  207. #define BUTTON1_RELAY 1
  208. // Relays
  209. #define RELAY1_PIN 12
  210. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  211. // LEDs
  212. #define LED1_PIN 13
  213. #define LED1_PIN_INVERSE 1
  214. #elif defined(ITEAD_SONOFF_POW)
  215. // Info
  216. #define MANUFACTURER "ITEAD"
  217. #define DEVICE "SONOFF_POW"
  218. // Buttons
  219. #define BUTTON1_PIN 0
  220. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  221. #define BUTTON1_RELAY 1
  222. // Relays
  223. #define RELAY1_PIN 12
  224. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  225. // LEDs
  226. #define LED1_PIN 15
  227. #define LED1_PIN_INVERSE 0
  228. // HLW8012
  229. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  230. #define HLW8012_SEL_PIN 5
  231. #define HLW8012_CF1_PIN 13
  232. #define HLW8012_CF_PIN 14
  233. #elif defined(ITEAD_SONOFF_DUAL)
  234. // Info
  235. #define MANUFACTURER "ITEAD"
  236. #define DEVICE "SONOFF_DUAL"
  237. #define SERIAL_BAUDRATE 19230
  238. #define RELAY_PROVIDER RELAY_PROVIDER_DUAL
  239. #define DUMMY_RELAY_COUNT 2
  240. #define DEBUG_SERIAL_SUPPORT 0
  241. #define TERMINAL_SUPPORT 0
  242. // Buttons
  243. #define BUTTON3_RELAY 1
  244. // LEDs
  245. #define LED1_PIN 13
  246. #define LED1_PIN_INVERSE 1
  247. #elif defined(ITEAD_SONOFF_4CH)
  248. // Info
  249. #define MANUFACTURER "ITEAD"
  250. #define DEVICE "SONOFF_4CH"
  251. // Buttons
  252. #define BUTTON1_PIN 0
  253. #define BUTTON2_PIN 9
  254. #define BUTTON3_PIN 10
  255. #define BUTTON4_PIN 14
  256. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  257. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  258. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  259. #define BUTTON4_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  260. #define BUTTON1_RELAY 1
  261. #define BUTTON2_RELAY 2
  262. #define BUTTON3_RELAY 3
  263. #define BUTTON4_RELAY 4
  264. // Relays
  265. #define RELAY1_PIN 12
  266. #define RELAY2_PIN 5
  267. #define RELAY3_PIN 4
  268. #define RELAY4_PIN 15
  269. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  270. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  271. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  272. #define RELAY4_TYPE RELAY_TYPE_NORMAL
  273. // LEDs
  274. #define LED1_PIN 13
  275. #define LED1_PIN_INVERSE 1
  276. #elif defined(ITEAD_SONOFF_4CH_PRO)
  277. // Info
  278. #define MANUFACTURER "ITEAD"
  279. #define DEVICE "SONOFF_4CH_PRO"
  280. // Buttons
  281. #define BUTTON1_PIN 0
  282. #define BUTTON2_PIN 9
  283. #define BUTTON3_PIN 10
  284. #define BUTTON4_PIN 14
  285. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  286. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  287. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  288. #define BUTTON4_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  289. #define BUTTON1_RELAY 1
  290. #define BUTTON2_RELAY 2
  291. #define BUTTON3_RELAY 3
  292. #define BUTTON4_RELAY 4
  293. // Relays
  294. #define RELAY1_PIN 12
  295. #define RELAY2_PIN 5
  296. #define RELAY3_PIN 4
  297. #define RELAY4_PIN 15
  298. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  299. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  300. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  301. #define RELAY4_TYPE RELAY_TYPE_NORMAL
  302. // LEDs
  303. #define LED1_PIN 13
  304. #define LED1_PIN_INVERSE 1
  305. #elif defined(ITEAD_1CH_INCHING)
  306. // The inching functionality is managed by a misterious IC in the board.
  307. // You cannot control the inching button and functionality from the ESP8266
  308. // Besides, enabling the inching functionality using the hardware button
  309. // will result in the relay switching on and off continuously.
  310. // Fortunately the unkown IC keeps memory of the hardware inching status
  311. // so you can just disable it and forget. The inching LED must be lit.
  312. // You can still use the pulse options from the web interface
  313. // without problem.
  314. // Info
  315. #define MANUFACTURER "ITEAD"
  316. #define DEVICE "1CH_INCHING"
  317. // Buttons
  318. #define BUTTON1_PIN 0
  319. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  320. #define BUTTON1_RELAY 1
  321. // Relays
  322. #define RELAY1_PIN 12
  323. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  324. // LEDs
  325. #define LED1_PIN 13
  326. #define LED1_PIN_INVERSE 1
  327. #elif defined(ITEAD_MOTOR)
  328. // Info
  329. #define MANUFACTURER "ITEAD"
  330. #define DEVICE "MOTOR"
  331. // Buttons
  332. #define BUTTON1_PIN 0
  333. #define BUTTON1_RELAY 1
  334. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  335. // Relays
  336. #define RELAY1_PIN 12
  337. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  338. // LEDs
  339. #define LED1_PIN 13
  340. #define LED1_PIN_INVERSE 1
  341. #elif defined(ITEAD_BNSZ01)
  342. // Info
  343. #define MANUFACTURER "ITEAD"
  344. #define DEVICE "BNSZ01"
  345. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  346. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  347. #define DUMMY_RELAY_COUNT 1
  348. // LEDs
  349. #define LED1_PIN 13
  350. #define LED1_PIN_INVERSE 1
  351. // Channels
  352. #define LIGHT_CH1_PIN 12
  353. #define LIGHT_CH1_INVERSE 0
  354. #elif defined(ITEAD_SONOFF_RFBRIDGE)
  355. // Info
  356. #define MANUFACTURER "ITEAD"
  357. #define DEVICE "SONOFF_RFBRIDGE"
  358. #define SERIAL_BAUDRATE 19200
  359. #define RELAY_PROVIDER RELAY_PROVIDER_RFBRIDGE
  360. #ifndef DUMMY_RELAY_COUNT
  361. #define DUMMY_RELAY_COUNT 6
  362. #endif
  363. #define TERMINAL_SUPPORT 0
  364. #define TRACK_RELAY_STATUS 0
  365. // Buttons
  366. #define BUTTON1_PIN 0
  367. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  368. // LEDs
  369. #define LED1_PIN 13
  370. #define LED1_PIN_INVERSE 1
  371. #elif defined(ITEAD_SONOFF_B1)
  372. // Info
  373. #define MANUFACTURER "ITEAD"
  374. #define DEVICE "SONOFF_B1"
  375. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  376. #define LIGHT_PROVIDER LIGHT_PROVIDER_MY9192
  377. #define DUMMY_RELAY_COUNT 1
  378. #define MY9291_DI_PIN 12
  379. #define MY9291_DCKI_PIN 14
  380. #define MY9291_COMMAND MY9291_COMMAND_DEFAULT
  381. #define MY9291_CHANNELS 5
  382. #elif defined(ITEAD_SONOFF_LED)
  383. // Info
  384. #define MANUFACTURER "ITEAD"
  385. #define DEVICE "SONOFF_LED"
  386. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  387. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  388. #define DUMMY_RELAY_COUNT 1
  389. // LEDs
  390. #define LED1_PIN 13
  391. #define LED1_PIN_INVERSE 1
  392. // Channels
  393. #define LIGHT_CH1_PIN 12 // Cold white
  394. #define LIGHT_CH2_PIN 14 // Warm white
  395. #define LIGHT_CH1_INVERSE 0
  396. #define LIGHT_CH2_INVERSE 0
  397. #elif defined(ITEAD_SONOFF_T1_1CH)
  398. // Info
  399. #define MANUFACTURER "ITEAD"
  400. #define DEVICE "SONOFF_T1_1CH"
  401. // Buttons
  402. #define BUTTON1_PIN 9
  403. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  404. #define BUTTON1_RELAY 1
  405. // Relays
  406. #define RELAY1_PIN 5
  407. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  408. // LEDs
  409. #define LED1_PIN 13
  410. #define LED1_PIN_INVERSE 1
  411. #elif defined(ITEAD_SONOFF_T1_2CH)
  412. // Info
  413. #define MANUFACTURER "ITEAD"
  414. #define DEVICE "SONOFF_T1_2CH"
  415. // Buttons
  416. #define BUTTON1_PIN 0
  417. #define BUTTON2_PIN 10
  418. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  419. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  420. #define BUTTON1_RELAY 1
  421. #define BUTTON2_RELAY 2
  422. // Relays
  423. #define RELAY1_PIN 12
  424. #define RELAY2_PIN 4
  425. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  426. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  427. // LEDs
  428. #define LED1_PIN 13
  429. #define LED1_PIN_INVERSE 1
  430. #elif defined(ITEAD_SONOFF_T1_3CH)
  431. // Info
  432. #define MANUFACTURER "ITEAD"
  433. #define DEVICE "SONOFF_T1_3CH"
  434. // Buttons
  435. #define BUTTON1_PIN 0
  436. #define BUTTON2_PIN 9
  437. #define BUTTON3_PIN 10
  438. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  439. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  440. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  441. #define BUTTON1_RELAY 1
  442. #define BUTTON2_RELAY 2
  443. #define BUTTON3_RELAY 3
  444. // Relays
  445. #define RELAY1_PIN 12
  446. #define RELAY2_PIN 5
  447. #define RELAY3_PIN 4
  448. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  449. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  450. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  451. // LEDs
  452. #define LED1_PIN 13
  453. #define LED1_PIN_INVERSE 1
  454. // -----------------------------------------------------------------------------
  455. // Electrodragon boards
  456. // -----------------------------------------------------------------------------
  457. #elif defined(ELECTRODRAGON_WIFI_IOT)
  458. // Info
  459. #define MANUFACTURER "ELECTRODRAGON"
  460. #define DEVICE "WIFI_IOT"
  461. // Buttons
  462. #define BUTTON1_PIN 0
  463. #define BUTTON2_PIN 2
  464. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  465. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  466. #define BUTTON1_RELAY 1
  467. #define BUTTON2_RELAY 2
  468. // Relays
  469. #define RELAY1_PIN 12
  470. #define RELAY2_PIN 13
  471. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  472. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  473. // LEDs
  474. #define LED1_PIN 16
  475. #define LED1_PIN_INVERSE 0
  476. // -----------------------------------------------------------------------------
  477. // WorkChoice ecoPlug
  478. // -----------------------------------------------------------------------------
  479. #elif defined(WORKCHOICE_ECOPLUG)
  480. // Info
  481. #define MANUFACTURER "WORKCHOICE"
  482. #define DEVICE "ECOPLUG"
  483. // Buttons
  484. #define BUTTON1_PIN 13
  485. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  486. #define BUTTON1_RELAY 1
  487. // Relays
  488. #define RELAY1_PIN 15
  489. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  490. // LEDs
  491. #define LED1_PIN 2
  492. #define LED1_PIN_INVERSE 0
  493. // -----------------------------------------------------------------------------
  494. // AI Thinker
  495. // -----------------------------------------------------------------------------
  496. #elif defined(AITHINKER_AI_LIGHT)
  497. // Info
  498. #define MANUFACTURER "AITHINKER"
  499. #define DEVICE "AI_LIGHT"
  500. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  501. #define LIGHT_PROVIDER LIGHT_PROVIDER_MY9192
  502. #define DUMMY_RELAY_COUNT 1
  503. #define MY9291_DI_PIN 13
  504. #define MY9291_DCKI_PIN 15
  505. #define MY9291_COMMAND MY9291_COMMAND_DEFAULT
  506. #define MY9291_CHANNELS 4
  507. // -----------------------------------------------------------------------------
  508. // LED Controller
  509. // -----------------------------------------------------------------------------
  510. #elif defined(MAGICHOME_LED_CONTROLLER)
  511. // Info
  512. #define MANUFACTURER "MAGICHOME"
  513. #define DEVICE "LED_CONTROLLER"
  514. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  515. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  516. #define DUMMY_RELAY_COUNT 1
  517. // LEDs
  518. #define LED1_PIN 2
  519. #define LED1_PIN_INVERSE 1
  520. // Channels
  521. #define LIGHT_CH1_PIN 14 // RED
  522. #define LIGHT_CH2_PIN 5 // GREEN
  523. #define LIGHT_CH3_PIN 12 // BLUE
  524. #define LIGHT_CH4_PIN 13 // WHITE
  525. #define LIGHT_CH1_INVERSE 0
  526. #define LIGHT_CH2_INVERSE 0
  527. #define LIGHT_CH3_INVERSE 0
  528. #define LIGHT_CH4_INVERSE 0
  529. // -----------------------------------------------------------------------------
  530. // LED Controller With IR
  531. // -----------------------------------------------------------------------------
  532. #elif defined(MAGICHOME_LED_CONTROLLER_IR)
  533. // Info
  534. #define MANUFACTURER "MAGICHOME"
  535. #define DEVICE "LED_CONTROLLER_IR"
  536. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  537. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  538. #define DUMMY_RELAY_COUNT 1
  539. // LEDs
  540. #define LED1_PIN 2
  541. #define LED1_PIN_INVERSE 1
  542. // Channels (for board version 2.0)
  543. #define LIGHT_CH1_PIN 5 // RED
  544. #define LIGHT_CH2_PIN 12 // GREEN
  545. #define LIGHT_CH3_PIN 13 // BLUE
  546. //#define LIGHT_CH4_PIN 14 // WHITE ?
  547. #define LIGHT_IR_PIN 4 // IR LED
  548. #define LIGHT_CH1_INVERSE 0
  549. #define LIGHT_CH2_INVERSE 0
  550. #define LIGHT_CH3_INVERSE 0
  551. #define LIGHT_CH4_INVERSE 0
  552. #define LIGHT_PROVIDER_EXPERIMENTAL_RGB_ONLY_HSV_IR 1
  553. // 24 Buttons Set of the IR Remote
  554. #ifndef IR_BUTTONS_SET
  555. #define IR_BUTTONS_SET 1
  556. #endif
  557. //Remote Buttons SET 1 (for the original Remote shipped with the controller)
  558. #if IR_BUTTONS_SET == 1
  559. #define IR_BUTTON_0 0xFF906F // Brightness +
  560. #define IR_BUTTON_1 0xFFB847 // Brightness -
  561. #define IR_BUTTON_2 0xFFF807 // OFF
  562. #define IR_BUTTON_3 0xFFB04F // ON
  563. #define IR_BUTTON_4 0xFF9867 // RED
  564. #define IR_BUTTON_5 0xFFD827 // GREEN
  565. #define IR_BUTTON_6 0xFF8877 // BLUE
  566. #define IR_BUTTON_7 0xFFA857 // WHITE
  567. #define IR_BUTTON_8 0xFFE817 // "Red" 1
  568. #define IR_BUTTON_9 0xFF48B7 // "Green" 1
  569. #define IR_BUTTON_10 0xFF6897 // "Blue" 1
  570. #define IR_BUTTON_11 0xFFB24D // FLASH Mode
  571. #define IR_BUTTON_12 0xFF02FD // "Red" 2
  572. #define IR_BUTTON_13 0xFF32CD // "Green" 2
  573. #define IR_BUTTON_14 0xFF20DF // "Blue" 2
  574. #define IR_BUTTON_15 0xFF00FF // STROBE Mode
  575. #define IR_BUTTON_16 0xFF50AF // "Red" 3
  576. #define IR_BUTTON_17 0xFF7887 // "Green" 3
  577. #define IR_BUTTON_18 0xFF708F // "Blue" 3
  578. #define IR_BUTTON_19 0xFF58A7 // FADE Mode
  579. #define IR_BUTTON_20 0xFF38C7 // "Red" 4
  580. #define IR_BUTTON_21 0xFF28D7 // "Green" 4
  581. #define IR_BUTTON_22 0xFFF00F // "Blue" 4
  582. #define IR_BUTTON_23 0xFF30CF // SMOOTH Mode
  583. #endif
  584. //Remote Buttons SET 2 (another identical IR Remote shipped with another controller)
  585. #if IR_BUTTONS_SET == 2
  586. #define IR_BUTTON_0 0xFF00FF // Brightness +
  587. #define IR_BUTTON_1 0xFF807F // Brightness -
  588. #define IR_BUTTON_2 0xFF40BF // OFF
  589. #define IR_BUTTON_3 0xFFC03F // ON
  590. #define IR_BUTTON_4 0xFF20DF // RED
  591. #define IR_BUTTON_5 0xFFA05F // GREEN
  592. #define IR_BUTTON_6 0xFF609F // BLUE
  593. #define IR_BUTTON_7 0xFFE01F // WHITE
  594. #define IR_BUTTON_8 0xFF10EF // "Red" 1
  595. #define IR_BUTTON_9 0xFF906F // "Green" 1
  596. #define IR_BUTTON_10 0xFF50AF // "Blue" 1
  597. #define IR_BUTTON_11 0xFFD02F // FLASH Mode
  598. #define IR_BUTTON_12 0xFF30CF // "Red" 2
  599. #define IR_BUTTON_13 0xFFB04F // "Green" 2
  600. #define IR_BUTTON_14 0xFF708F // "Blue" 2
  601. #define IR_BUTTON_15 0xFFF00F // STROBE Mode
  602. #define IR_BUTTON_16 0xFF08F7 // "Red" 3
  603. #define IR_BUTTON_17 0xFF8877 // "Green" 3
  604. #define IR_BUTTON_18 0xFF48B7 // "Blue" 3
  605. #define IR_BUTTON_19 0xFFC837 // FADE Mode
  606. #define IR_BUTTON_20 0xFF28D7 // "Red" 4
  607. #define IR_BUTTON_21 0xFFA857 // "Green" 4
  608. #define IR_BUTTON_22 0xFF6897 // "Blue" 4
  609. #define IR_BUTTON_23 0xFFE817 // SMOOTH Mode
  610. #endif
  611. // -----------------------------------------------------------------------------
  612. // HUACANXING H801
  613. // -----------------------------------------------------------------------------
  614. #elif defined(HUACANXING_H801)
  615. // Info
  616. #define MANUFACTURER "HUACANXING"
  617. #define DEVICE "H801"
  618. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  619. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  620. #define DUMMY_RELAY_COUNT 1
  621. // LEDs
  622. #define LED1_PIN 5
  623. #define LED1_PIN_INVERSE 1
  624. // Channels
  625. #define LIGHT_CH1_PIN 15 // RED
  626. #define LIGHT_CH2_PIN 13 // GREEN
  627. #define LIGHT_CH3_PIN 12 // BLUE
  628. #define LIGHT_CH4_PIN 14 // WHITE1
  629. #define LIGHT_CH5_PIN 4 // WHITE2
  630. #define LIGHT_CH1_INVERSE 0
  631. #define LIGHT_CH2_INVERSE 0
  632. #define LIGHT_CH3_INVERSE 0
  633. #define LIGHT_CH4_INVERSE 0
  634. #define LIGHT_CH5_INVERSE 0
  635. // -----------------------------------------------------------------------------
  636. // Jan Goedeke Wifi Relay
  637. // https://github.com/JanGoe/esp8266-wifi-relay
  638. // -----------------------------------------------------------------------------
  639. #elif defined(JANGOE_WIFI_RELAY_NC)
  640. // Info
  641. #define MANUFACTURER "JANGOE"
  642. #define DEVICE "WIFI_RELAY_NC"
  643. // Buttons
  644. #define BUTTON1_PIN 12
  645. #define BUTTON2_PIN 13
  646. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  647. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  648. #define BUTTON1_RELAY 1
  649. #define BUTTON2_RELAY 2
  650. // Relays
  651. #define RELAY1_PIN 2
  652. #define RELAY2_PIN 14
  653. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  654. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  655. #elif defined(JANGOE_WIFI_RELAY_NO)
  656. // Info
  657. #define MANUFACTURER "JANGOE"
  658. #define DEVICE "WIFI_RELAY_NO"
  659. // Buttons
  660. #define BUTTON1_PIN 12
  661. #define BUTTON2_PIN 13
  662. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  663. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  664. #define BUTTON1_RELAY 1
  665. #define BUTTON2_RELAY 2
  666. // Relays
  667. #define RELAY1_PIN 2
  668. #define RELAY2_PIN 14
  669. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  670. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  671. // -----------------------------------------------------------------------------
  672. // Jorge García Wifi+Relays Board Kit
  673. // https://www.tindie.com/products/jorgegarciadev/wifi--relays-board-kit
  674. // https://github.com/jorgegarciadev/wifikit
  675. // -----------------------------------------------------------------------------
  676. #elif defined(JORGEGARCIA_WIFI_RELAYS)
  677. // Info
  678. #define MANUFACTURER "JORGEGARCIA"
  679. #define DEVICE "WIFI_RELAYS"
  680. // Relays
  681. #define RELAY1_PIN 0
  682. #define RELAY2_PIN 2
  683. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  684. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  685. // -----------------------------------------------------------------------------
  686. // WiFi MQTT Relay / Thermostat
  687. // -----------------------------------------------------------------------------
  688. #elif defined(OPENENERGYMONITOR_MQTT_RELAY)
  689. // Info
  690. #define MANUFACTURER "OPENENERGYMONITOR"
  691. #define DEVICE "MQTT_RELAY"
  692. // Buttons
  693. #define BUTTON1_PIN 0
  694. #define BUTTON1_RELAY 1
  695. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  696. // Relays
  697. #define RELAY1_PIN 12
  698. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  699. // LEDs
  700. #define LED1_PIN 16
  701. #define LED1_PIN_INVERSE 0
  702. // -----------------------------------------------------------------------------
  703. // WiOn 50055 Indoor Wi-Fi Wall Outlet & Tap
  704. // https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338044841&mpre=http%3A%2F%2Fwww.ebay.com%2Fitm%2FWiOn-50050-Indoor-Wi-Fi-Outlet-Wireless-Switch-Programmable-Timer-%2F263112281551
  705. // https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338044841&mpre=http%3A%2F%2Fwww.ebay.com%2Fitm%2FWiOn-50055-Indoor-Wi-Fi-Wall-Tap-Monitor-Energy-Usage-Wireless-Smart-Switch-%2F263020837777
  706. // -----------------------------------------------------------------------------
  707. #elif defined(WION_50055)
  708. // Currently untested, does not support energy monitoring
  709. // Info
  710. #define MANUFACTURER "WION"
  711. #define DEVICE "50055"
  712. // Buttons
  713. #define BUTTON1_PIN 13
  714. #define BUTTON1_RELAY 1
  715. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  716. // Relays
  717. #define RELAY1_PIN 15
  718. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  719. // LEDs
  720. #define LED1_PIN 2
  721. #define LED1_PIN_INVERSE 0
  722. // -----------------------------------------------------------------------------
  723. // EX-Store Wifi Relay v3.1
  724. // https://ex-store.de/ESP8266-WiFi-Relay-V31
  725. // -----------------------------------------------------------------------------
  726. #elif defined(EXS_WIFI_RELAY_V31)
  727. // Untested
  728. // Info
  729. #define MANUFACTURER "EXS"
  730. #define DEVICE "WIFI_RELAY_V31"
  731. // Buttons
  732. #define BUTTON1_PIN 0
  733. #define BUTTON1_RELAY 1
  734. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  735. // Relays
  736. #define RELAY1_PIN 13
  737. #define RELAY1_TYPE RELAY_TYPE_LATCHED
  738. #define RELAY1_RESET_PIN 12
  739. // -----------------------------------------------------------------------------
  740. // HUACANXING H802
  741. // -----------------------------------------------------------------------------
  742. #elif defined(HUACANXING_H802)
  743. // Info
  744. #define MANUFACTURER "HUACANXING"
  745. #define DEVICE "H802"
  746. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  747. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  748. #define DUMMY_RELAY_COUNT 1
  749. // Channels
  750. #define LIGHT_CH1_PIN 12 // RED
  751. #define LIGHT_CH2_PIN 14 // GREEN
  752. #define LIGHT_CH3_PIN 13 // BLUE
  753. #define LIGHT_CH4_PIN 15 // WHITE
  754. #define LIGHT_CH1_INVERSE 0
  755. #define LIGHT_CH2_INVERSE 0
  756. #define LIGHT_CH3_INVERSE 0
  757. #define LIGHT_CH4_INVERSE 0
  758. // -----------------------------------------------------------------------------
  759. // V9261F
  760. // -----------------------------------------------------------------------------
  761. #elif defined(GENERIC_V9261F)
  762. // Info
  763. #define MANUFACTURER "GENERIC"
  764. #define DEVICE "V9261F"
  765. // V9261F
  766. #define POWER_PROVIDER POWER_PROVIDER_V9261F
  767. #define V9261F_PIN 2
  768. #define V9261F_PIN_INVERSE 1
  769. // -----------------------------------------------------------------------------
  770. // ECH1560
  771. // -----------------------------------------------------------------------------
  772. #elif defined(GENERIC_ECH1560)
  773. // Info
  774. #define MANUFACTURER "GENERIC"
  775. #define DEVICE "ECH1560"
  776. // ECH1560
  777. #define POWER_PROVIDER POWER_PROVIDER_ECH1560
  778. #define ECH1560_CLK_PIN 4
  779. #define ECH1560_MISO_PIN 5
  780. #define ECH1560_INVERTED 0
  781. // -----------------------------------------------------------------------------
  782. // ESPLive
  783. // https://github.com/ManCaveMade/ESP-Live
  784. // -----------------------------------------------------------------------------
  785. #elif defined(MANCAVEMADE_ESPLIVE)
  786. // Info
  787. #define MANUFACTURER "MANCAVEMADE"
  788. #define DEVICE "ESPLIVE"
  789. // Buttons
  790. #define BUTTON1_PIN 4
  791. #define BUTTON2_PIN 5
  792. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  793. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  794. #define BUTTON1_RELAY 1
  795. #define BUTTON2_RELAY 2
  796. // Relays
  797. #define RELAY1_PIN 12
  798. #define RELAY2_PIN 13
  799. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  800. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  801. // DB18B20
  802. #define DS18B20_SUPPORT 1
  803. #define DS18B20_PIN 2
  804. #define DS18B20_UPDATE_INTERVAL 5000
  805. #define DS18B20_UPDATE_ON_CHANGE 1.0
  806. // -----------------------------------------------------------------------------
  807. // Unknown hardware
  808. // -----------------------------------------------------------------------------
  809. #else
  810. #error "UNSUPPORTED HARDWARE!"
  811. #endif
  812. // -----------------------------------------------------------------------------
  813. // Default values
  814. // -----------------------------------------------------------------------------
  815. #ifndef BUTTON1_PRESS
  816. #define BUTTON1_PRESS BUTTON_MODE_NONE
  817. #endif
  818. #ifndef BUTTON2_PRESS
  819. #define BUTTON2_PRESS BUTTON_MODE_NONE
  820. #endif
  821. #ifndef BUTTON3_PRESS
  822. #define BUTTON3_PRESS BUTTON_MODE_NONE
  823. #endif
  824. #ifndef BUTTON4_PRESS
  825. #define BUTTON4_PRESS BUTTON_MODE_NONE
  826. #endif
  827. #ifndef BUTTON1_CLICK
  828. #define BUTTON1_CLICK BUTTON_MODE_TOGGLE
  829. #endif
  830. #ifndef BUTTON2_CLICK
  831. #define BUTTON2_CLICK BUTTON_MODE_TOGGLE
  832. #endif
  833. #ifndef BUTTON3_CLICK
  834. #define BUTTON3_CLICK BUTTON_MODE_TOGGLE
  835. #endif
  836. #ifndef BUTTON4_CLICK
  837. #define BUTTON4_CLICK BUTTON_MODE_TOGGLE
  838. #endif
  839. #ifndef BUTTON1_DBLCLICK
  840. #define BUTTON1_DBLCLICK BUTTON_MODE_AP
  841. #endif
  842. #ifndef BUTTON2_DBLCLICK
  843. #define BUTTON2_DBLCLICK BUTTON_MODE_NONE
  844. #endif
  845. #ifndef BUTTON3_DBLCLICK
  846. #define BUTTON3_DBLCLICK BUTTON_MODE_NONE
  847. #endif
  848. #ifndef BUTTON4_DBLCLICK
  849. #define BUTTON4_DBLCLICK BUTTON_MODE_NONE
  850. #endif
  851. #ifndef BUTTON1_LNGCLICK
  852. #define BUTTON1_LNGCLICK BUTTON_MODE_RESET
  853. #endif
  854. #ifndef BUTTON2_LNGCLICK
  855. #define BUTTON2_LNGCLICK BUTTON_MODE_NONE
  856. #endif
  857. #ifndef BUTTON3_LNGCLICK
  858. #define BUTTON3_LNGCLICK BUTTON_MODE_NONE
  859. #endif
  860. #ifndef BUTTON4_LNGCLICK
  861. #define BUTTON4_LNGCLICK BUTTON_MODE_NONE
  862. #endif
  863. #ifndef BUTTON1_LNGLNGCLICK
  864. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_FACTORY
  865. #endif
  866. #ifndef BUTTON2_LNGLNGCLICK
  867. #define BUTTON2_LNGLNGCLICK BUTTON_MODE_NONE
  868. #endif
  869. #ifndef BUTTON3_LNGLNGCLICK
  870. #define BUTTON3_LNGLNGCLICK BUTTON_MODE_NONE
  871. #endif
  872. #ifndef BUTTON4_LNGLNGCLICK
  873. #define BUTTON4_LNGLNGCLICK BUTTON_MODE_NONE
  874. #endif
  875. #ifndef BUTTON1_RELAY
  876. #define BUTTON1_RELAY 0
  877. #endif
  878. #ifndef BUTTON2_RELAY
  879. #define BUTTON2_RELAY 0
  880. #endif
  881. #ifndef BUTTON3_RELAY
  882. #define BUTTON3_RELAY 0
  883. #endif
  884. #ifndef BUTTON4_RELAY
  885. #define BUTTON4_RELAY 0
  886. #endif
  887. #ifndef RELAY1_RESET_PIN
  888. #define RELAY1_RESET_PIN 0
  889. #endif
  890. #ifndef RELAY2_RESET_PIN
  891. #define RELAY2_RESET_PIN 0
  892. #endif
  893. #ifndef RELAY3_RESET_PIN
  894. #define RELAY3_RESET_PIN 0
  895. #endif
  896. #ifndef RELAY4_RESET_PIN
  897. #define RELAY4_RESET_PIN 0
  898. #endif
  899. #ifndef RELAY1_DELAY_ON
  900. #define RELAY1_DELAY_ON 0
  901. #endif
  902. #ifndef RELAY2_DELAY_ON
  903. #define RELAY2_DELAY_ON 0
  904. #endif
  905. #ifndef RELAY3_DELAY_ON
  906. #define RELAY3_DELAY_ON 0
  907. #endif
  908. #ifndef RELAY4_DELAY_ON
  909. #define RELAY4_DELAY_ON 0
  910. #endif
  911. #ifndef RELAY1_DELAY_OFF
  912. #define RELAY1_DELAY_OFF 0
  913. #endif
  914. #ifndef RELAY2_DELAY_OFF
  915. #define RELAY2_DELAY_OFF 0
  916. #endif
  917. #ifndef RELAY3_DELAY_OFF
  918. #define RELAY3_DELAY_OFF 0
  919. #endif
  920. #ifndef RELAY4_DELAY_OFF
  921. #define RELAY4_DELAY_OFF 0
  922. #endif
  923. #ifndef RELAY1_LED
  924. #define RELAY1_LED 0
  925. #endif
  926. #ifndef RELAY2_LED
  927. #define RELAY2_LED 0
  928. #endif
  929. #ifndef RELAY3_LED
  930. #define RELAY3_LED 0
  931. #endif
  932. #ifndef RELAY4_LED
  933. #define RELAY4_LED 0
  934. #endif
  935. // Needed for ESP8285 boards under Windows using PlatformIO (?)
  936. #ifndef BUTTON_PUSHBUTTON
  937. #define BUTTON_PUSHBUTTON 0
  938. #define BUTTON_SWITCH 1
  939. #define BUTTON_DEFAULT_HIGH 2
  940. #define BUTTON_SET_PULLUP 4
  941. #endif
  942. // Does the board track the relay status?
  943. #ifndef TRACK_RELAY_STATUS
  944. #define TRACK_RELAY_STATUS 1
  945. #endif
  946. // Serial baudrate
  947. #ifndef SERIAL_BAUDRATE
  948. #define SERIAL_BAUDRATE 115200
  949. #endif
  950. // Relay providers
  951. #ifndef RELAY_PROVIDER
  952. #define RELAY_PROVIDER RELAY_PROVIDER_RELAY
  953. #endif
  954. // Light provider
  955. #ifndef LIGHT_PROVIDER
  956. #define LIGHT_PROVIDER LIGHT_PROVIDER_NONE
  957. #endif