Advertisement
IGLORENZ

myoptions.h

Jan 9th, 2024 (edited)
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | Help | 0 0
  1. #ifndef myoptions_h
  2. #define myoptions_h
  3.  
  4. /* Konfiguration für CYD (cheap yellow display) ESP2432S028R * /
  5. /* !!! Do not be alarmed, all right, the default values ​​are not included in this file !!! */
  6.  
  7. #define DSP_MODEL           DSP_ILI9341
  8. #define DSP_HSPI            true
  9. #define LED_INVERT          true
  10. #define TFT_CS              15
  11. #define TFT_DC              2
  12. #define TFT_RST             -1
  13. #define LED_BUILTIN         17
  14. #define BRIGHTNESS_PIN      21
  15. /* fuer internen Lautsprecherausgang */
  16. #define I2S_DOUT            22
  17. #define I2S_BCLK            16
  18. #define I2S_LRC             4
  19.  
  20. /* fuer externes I2S Modul
  21. #define I2S_DOUT            25
  22. #define I2S_BCLK            27
  23. #define I2S_LRC             26
  24. */
  25.  
  26. #define TS_MODEL            TS_MODEL_XPT2046
  27. #define TS_SPIPINS          25, 39, 32    /* SCK, MISO, MOSI */
  28. #define TS_CS               33
  29. //#define IR_PIN              27
  30. #define LIGHT_SENSOR        34
  31. #define AUTOBACKLIGHT_MAX   1024
  32.  
  33. /*  SDCARD  */
  34. /*  MISO is the same as D0, MOSI is the same as D1 */
  35. /*  SD VSPI PINS. SD SCK must be connected to pin 18
  36.                   SD MISO must be connected to pin 19
  37.                   SD MOSI must be connected to pin 23  */
  38. /*  SD VSPI PINS. */
  39. #define SD_SPIPINS  18, 19, 23      /* SCK, MISO, MOSI */
  40. #define SDC_CS      5           /* SDCARD CS pin */
  41.  
  42.  
  43. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement