您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

57 行
1.7KB

  1. /*
  2. ILI9341_due_config.h - Arduino Due library for interfacing with ILI9341-based TFTs
  3. Code: https://github.com/marekburiak/ILI9341_due
  4. Documentation: http://marekburiak.github.io/ILI9341_due/
  5. Copyright (c) 2015 Marek Buriak
  6. */
  7. #ifndef _ILI9341_due_configH_
  8. #define _ILI9341_due_configH_
  9. // comment out the SPI mode you want to use (does not matter for AVR)
  10. #define ILI9341_SPI_MODE_NORMAL // uses SPI library
  11. //#define ILI9341_SPI_MODE_EXTENDED // uses Extended SPI in Due, make sure you use pin 4, 10 or 52 for CS
  12. //#define ILI9341_SPI_MODE_DMA // uses DMA in Due
  13. // set the clock divider
  14. #if defined ARDUINO_SAM_DUE
  15. #define ILI9341_SPI_CLKDIVIDER 4 // for Due
  16. #elif defined ARDUINO_ARCH_AVR
  17. #define ILI9341_SPI_CLKDIVIDER SPI_CLOCK_DIV2 // for Uno, Mega,...
  18. #elif defined(TEENSYDUINO)
  19. #define SPICLOCK 30000000
  20. #endif
  21. // uncomment if you want to use SPI transactions. Uncomment it if the library does not work when used with other libraries.
  22. #define ILI_USE_SPI_TRANSACTION
  23. // comment out if you do need to use scaled text. The text will draw then faster.
  24. #define TEXT_SCALING_ENABLED
  25. // default letter spacing
  26. #define DEFAULT_LETTER_SPACING 2
  27. // default line spacing
  28. #define DEFAULT_LINE_SPACING 0
  29. // sets the space between lines as part of the text
  30. //#define LINE_SPACING_AS_PART_OF_LETTERS
  31. // number representing the maximum angle (e.g. if 100, then if you pass in start=0 and end=50, you get a half circle)
  32. // this can be changed with setArcParams function at runtime
  33. #define DEFAULT_ARC_ANGLE_MAX 360
  34. // rotational offset in degrees defining position of value 0 (-90 will put it at the top of circle)
  35. // this can be changed with setAngleOffset function at runtime
  36. #define DEFAULT_ANGLE_OFFSET -90
  37. #endif