Skip to content

Commit

Permalink
RESTORE
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 8, 2025
1 parent ae97afc commit 1e77b14
Showing 1 changed file with 100 additions and 12 deletions.
112 changes: 100 additions & 12 deletions src/obk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@
//ENABLE_DRIVER_CSE7766 - Enable support for CSE7766
//ENABLE_DRIVER_TUYAMCU - Enable support for TuyaMCU and tmSensor

// not yet implemented
//#define ENABLE_MQTT 1

#define ENABLE_HTTP_MQTT 1
#define ENABLE_HTTP_IP 1
#define ENABLE_HTTP_WEBAPP 1
#define ENABLE_HTTP_NAMES 1
#define ENABLE_HTTP_MAC 1
#define ENABLE_HTTP_FLAGS 1
#define ENABLE_HTTP_STARTUP 1
#define ENABLE_HTTP_DGR 1
#define ENABLE_HTTP_PING 1



#if PLATFORM_XR809

Expand Down Expand Up @@ -44,22 +54,25 @@

#elif WINDOWS


#define ENABLE_HA_DISCOVERY 1
#define ENABLE_HTTP_SEND 1
#define ENABLE_MQTT 1
#define ENABLE_TASMOTADEVICEGROUPS 1
#define ENABLE_LITTLEFS 1
#define ENABLE_NTP 1
#define ENABLE_NTP_DST 1
#define ENABLE_DRIVER_LED 1
#define ENABLE_LED_BASIC 1
#define ENABLE_DRIVER_TESTPOWER 1
#define ENABLE_DRIVER_BL0942 1
#define ENABLE_DRIVER_BL0937 1
#define ENABLE_DRIVER_CSE7766 1
#define ENABLE_DRIVER_BL0937 1
#define ENABLE_DRIVER_BL0942 1
#define ENABLE_DRIVER_BL0942SPI 1
#define ENABLE_DRIVER_CSE7766 1
#define ENABLE_DRIVER_HT16K33 1
#define ENABLE_DRIVER_MAX72XX 1
#define ENABLE_DRIVER_TUYAMCU 1
#define ENABLE_TEST_COMMANDS 1
#define ENABLE_CALENDAR_EVENTS 1
#define ENABLE_DRIVER_TESTLED 1
#define ENABLE_TEST_DRIVERS 1
#define ENABLE_DRIVER_BRIDGE 1
#define ENABLE_HTTPBUTTONS 1
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
Expand All @@ -75,14 +88,16 @@
#define ENABLE_EXPAND_CONSTANT 1
#define ENABLE_DRIVER_DHT 1
#define ENABLE_DRIVER_SM16703P 1
#define ENABLE_DRIVER_PIXELANIM 1
#define ENABLE_DRIVER_TMGN 1
#define ENABLE_DRIVER_DRAWERS 1
#define ENABLE_TASMOTA_JSON 1
#define ENABLE_DRIVER_DDP 1
#define ENABLE_DRIVER_SSDP 1
#define ENABLE_DRIVER_ADCBUTTON 1
#define ENABLE_DRIVER_SM15155E 1
#define ENABLE_DRIVER_IR2 0
#define ENABLE_DRIVER_IR 1
//#define ENABLE_DRIVER_IR2 1
#define ENABLE_DRIVER_CHARTS 1
#define ENABLE_DRIVER_WIDGET 1
#define ENABLE_DRIVER_OPENWEATHERMAP 1
Expand All @@ -91,13 +106,14 @@
#define ENABLE_DRIVER_ADCSMOOTHER 1
#define ENABLE_DRIVER_SGP 1
#define ENABLE_DRIVER_SHIFTREGISTER 1
// GET and POST
#define ENABLE_HTTP_SEND 1


#elif PLATFORM_BL602


#define ENABLE_HA_DISCOVERY 1
// I have enabled drivers on BL602
#define ENABLE_MQTT 1
#define ENABLE_TASMOTADEVICEGROUPS 1
#define ENABLE_LITTLEFS 1
#define ENABLE_NTP 1
Expand All @@ -123,12 +139,74 @@

#elif PLATFORM_BEKEN

#define OBK_DISABLE_ALL_DRIVERS 1

#define ENABLE_HA_DISCOVERY 1
#define ENABLE_HTTP_SEND 1
#define ENABLE_MQTT 1
#define ENABLE_TASMOTADEVICEGROUPS 1
#define ENABLE_LITTLEFS 1
#define ENABLE_NTP 1
//#define ENABLE_NTP_DST 1
#define ENABLE_NTP_SUNRISE_SUNSET 1
#define ENABLE_DRIVER_LED 1
#define ENABLE_DRIVER_BL0937 1
#define ENABLE_DRIVER_BL0942 1
#define ENABLE_DRIVER_BL0942SPI 1
#define ENABLE_DRIVER_CSE7766 1
#define ENABLE_DRIVER_BMP280 1
//#define ENABLE_DRIVER_PT6523 1
//#define ENABLE_DRIVER_MAX6675 1
//#define ENABLE_DRIVER_TEXTSCROLLER 1
#define ENABLE_DRIVER_TUYAMCU 1
//#define ENABLE_DRIVER_HT16K33 1
//#define ENABLE_DRIVER_MAX72XX 1
//#define ENABLE_DRIVER_ADCBUTTON 1
#define ENABLE_I2C 1
//#define ENABLE_TEST_COMMANDS 1
#define ENABLE_CALENDAR_EVENTS 1
#define ENABLE_DRIVER_BRIDGE 1
#define ENABLE_HTTPBUTTONS 1
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
#define ENABLE_DRIVER_WEMO 1
#define ENABLE_DRIVER_HUE 1
//#define ENABLE_DRIVER_CHARGINGLIMIT 1
#define ENABLE_DRIVER_BATTERY 1
#if PLATFORM_BK7231N
//#define ENABLE_DRIVER_PWM_GROUP 1
#define ENABLE_DRIVER_SM16703P 1
#define ENABLE_DRIVER_PIXELANIM 1
#define ENABLE_DRIVER_SM15155E 1
#endif
// parse things like $CH1 or $hour etc
#define ENABLE_EXPAND_CONSTANT 1
#define ENABLE_DRIVER_DHT 1
//#define ENABLE_DRIVER_AHT2X 1
#define ENABLE_DRIVER_TMGN 0
#define ENABLE_DRIVER_DRAWERS 0
#define ENABLE_TASMOTA_JSON 1
//#define ENABLE_DRIVER_BMPI2C 1
#define ENABLE_DRIVER_DDP 1
#define ENABLE_DRIVER_SSDP 1
#define ENABLE_DRIVER_IR 1
//#define ENABLE_DRIVER_IR2 1
#define ENABLE_DRIVER_DS1820 1
#define ENABLE_DRIVER_CHT83XX 1
#define ENABLE_DRIVER_KP18058 1
#define ENABLE_DRIVER_ADCSMOOTHER 1
//#define ENABLE_DRIVER_OPENWEATHERMAP 1
#define OBK_OTA_EXTENSION ".rbl"

// ENABLE_I2C_ is a syntax for
// our I2C system defines for drv_i2c_main.c
//#define ENABLE_I2C_ADS1115 1
//#define ENABLE_I2C_MCP23017 1
//#define ENABLE_I2C_LCD_PCF8574 1

#elif PLATFORM_LN882H


#define ENABLE_HA_DISCOVERY 1
#define ENABLE_MQTT 1
//#define OBK_DISABLE_ALL_DRIVERS 1
#define ENABLE_TASMOTADEVICEGROUPS 1
#define ENABLE_NTP 1
Expand All @@ -149,6 +227,9 @@

#elif PLATFORM_ESPIDF


#define ENABLE_HA_DISCOVERY 1
#define ENABLE_MQTT 1
#define ENABLE_I2C 1
#define ENABLE_NTP 1
//#define ENABLE_NTP_DST 1
Expand All @@ -175,6 +256,9 @@

#elif PLATFORM_TR6260


#define ENABLE_HA_DISCOVERY 1
#define ENABLE_MQTT 1
#define NO_CHIP_TEMPERATURE 1
#define ENABLE_LITTLEFS 1
#define NEW_TCP_SERVER 1
Expand All @@ -189,6 +273,9 @@

#elif PLATFORM_RTL87X0C


#define ENABLE_HA_DISCOVERY 1
#define ENABLE_MQTT 1
#define NO_CHIP_TEMPERATURE 1
#define ENABLE_LITTLEFS 1
#define NEW_TCP_SERVER 1
Expand Down Expand Up @@ -223,3 +310,4 @@

// closing OBK_CONFIG_H
#endif

0 comments on commit 1e77b14

Please sign in to comment.