Advertisement
meingraham

Tasmota Display user_config_override

Oct 7th, 2019
3,315
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.24 KB | None | 1 0
  1. #ifndef _USER_CONFIG_OVERRIDE_H_
  2. #define _USER_CONFIG_OVERRIDE_H_
  3. #define DISPLAY_CONFIG  // -- Enable Display driver --
  4.  
  5. #ifdef DISPLAY_CONFIG  // ---------------------------------------------------------------------------
  6.   #undef  USE_SPI
  7.   #define USE_DISPLAY
  8.  
  9.   #ifdef  USE_DISPLAY_MODES1TO5
  10.     #undef  USE_DISPLAY_MODES1TO5                // Disable display mode 1 to 5 in addition to mode 0
  11.   #endif
  12.  
  13.  
  14. // Choose your display type by selecting the appropriate block of settings
  15.  
  16.   // LCD display (I2C addresses 0x27 and 0x3F)
  17.   #ifndef USE_DISPLAY_LCD                      // Enable
  18.     #define USE_DISPLAY_LCD
  19.   #endif
  20. //  #ifdef USE_DISPLAY_LCD                       // Disable
  21. //    #undef USE_DISPLAY_LCD
  22. //  #endif
  23.  
  24.   // OLED 128x64 display (I2C addresses 0x3C and 0x3D)
  25. //  #ifndef USE_DISPLAY_SSD1306                  // Enable
  26. //    #define USE_DISPLAY_SSD1306
  27. //  #endif
  28.   #ifdef USE_DISPLAY_SSD1306                   // Disable
  29.     #undef USE_DISPLAY_SSD1306
  30.   #endif
  31.  
  32.   // OLED SH1106 display (I2C addresses 0x3C and 0x3D)
  33. //  #ifndef USE_DISPLAY_SSD1306                  // Enable
  34. //    #define USE_DISPLAY_SSD1306
  35. //  #endif
  36.   #ifdef USE_DISPLAY_SH1106                   // Disable
  37.     #undef USE_DISPLAY_SH1106
  38.   #endif
  39.  
  40.   // 8x8 Matrix display
  41. //  #ifndef USE_DISPLAY_MATRIX                   // Enable
  42. //    #define USE_DISPLAY_MATRIX
  43. //  #endif
  44.   #ifdef USE_DISPLAY_MATRIX                    // Disable
  45.     #undef USE_DISPLAY_MATRIX
  46.   #endif
  47.  
  48.   // [DisplayModel 4] ILI9341 TFT 480x320 display (+19k code)
  49. //  #ifndef USE_DISPLAY_ILI9341                  // Enable
  50. //    #define USE_DISPLAY_ILI9341
  51. //    #define USE_SPI
  52. //  #endif
  53.   #ifdef USE_DISPLAY_ILI9341                   // Disable
  54.     #undef USE_DISPLAY_ILI9341
  55.   #endif
  56.  
  57.   // e-paper display (choose 29 or 42)
  58. //  #ifndef USE_DISPLAY_EPAPER                   // Enable
  59. //    #define USE_SPI
  60. //    #define SHOW_SPLASH  
  61. //    #define USE_DISPLAY_EPAPER
  62. //    #define USE_DISPLAY_EPAPER_29                // [DisplayModel 5] e-paper 2.9 inch display (+19k code)
  63. //    #define USE_DISPLAY_EPAPER_42                // [DisplayModel 6] e-paper 4.2 inch display
  64. //  #endif
  65.   #ifdef  USE_DISPLAY_EPAPER                   // Disable
  66.     #undef USE_DISPLAY_EPAPER
  67.     #undef USE_DISPLAY_EPAPER_29
  68.     #undef USE_DISPLAY_EPAPER_42
  69.   #endif
  70.  
  71.   // [DisplayModel 8] ILI9488
  72. //  #ifndef USE_DISPLAY_ILI9488                  // Enable
  73. //    #define USE_SPI
  74. //    #define USE_DISPLAY_ILI9488
  75. //  #endif
  76.   #ifdef USE_DISPLAY_ILI9488                   // Disable
  77.     #undef USE_DISPLAY_ILI9488
  78.   #endif
  79.  
  80.   // [DisplayModel 9] SSD1351
  81. //  #ifndef USE_DISPLAY_SSD1351                  // Enable
  82. //    #define USE_SPI
  83. //    #define USE_DISPLAY_SSD1351
  84. //  #endif
  85.   #ifdef USE_DISPLAY_SSD1351                   // Disable
  86.     #undef USE_DISPLAY_SSD1351
  87.   #endif
  88.  
  89.   // [DisplayModel 10] RA8876
  90. //  #ifndef USE_DISPLAY_RA8876                   // Enable
  91. //    #define USE_SPI
  92. //    #define USE_DISPLAY_RA8876
  93. //  #endif
  94.   #ifdef USE_DISPLAY_RA8876                    // Disable
  95.     #undef USE_DISPLAY_RA8876
  96.   #endif
  97.  
  98. #endif  // DISPLAY_CONFIG ----------------------------------------------------------------------------
  99.  
  100. #endif  // _USER_CONFIG_OVERRIDE_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement