Advertisement
LeventeDaradici

yoRadio on esp32-2432s028 myoptions.h configuration file

Apr 26th, 2023
8,361
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.45 KB | Source Code | 1 0
  1. // My youtube channel: https://www.youtube.com/@LeventeDaradici/videos
  2. // My pastebin page: https://pastebin.com/u/LeventeDaradici
  3. // ёRadio on Github: https://github.com/e2002/yoradio
  4. // ёRadio - simple myoptions.h generator: https://e2002.github.io/docs/myoptions-generator.html
  5. // Board settings: https://i.imgur.com/HdWUg0w.jpeg
  6. // About how we load the file system on the board: https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/
  7. // The board I used: https://macsbug.wordpress.com/2022/08/17/esp32-2432s028/
  8. // I bought the board from here:https://www.aliexpress.com/item/1005004502250619.html
  9. // The answer that helped me solve the problem with the touchscreen: https://github.com/e2002/yoradio/issues/34
  10. //
  11. #ifndef myoptions_h
  12. #define myoptions_h
  13.  
  14. #define DSP_MODEL           DSP_ILI9341
  15. #define DSP_HSPI            true
  16. #define LED_INVERT          true
  17. #define TFT_CS              15
  18. #define TFT_DC              2
  19. #define TFT_RST             -1
  20. #define LED_BUILTIN         17
  21. #define BRIGHTNESS_PIN      21
  22. #define I2S_INTERNAL            true
  23. #define PLAYER_FORCE_MONO           true
  24. //#define I2S_DOUT            22
  25. //#define I2S_BCLK            16
  26. //#define I2S_LRC             4
  27. #define TS_MODEL            TS_MODEL_XPT2046
  28. #define TS_SPIPINS          25, 39, 32    /* SCK, MISO, MOSI */
  29. #define TS_CS               33
  30. //#define IR_PIN              27
  31. #define LIGHT_SENSOR        34
  32. #define AUTOBACKLIGHT_MAX   1024
  33.  
  34. #endif
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement