Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

50 lines
1.7KB

  1. Software SPI is now supported on AVR, Due, and Teensy 3.x boards.
  2. Edit these variables in SdFatConfig.h to enable Software SPI.
  3. //------------------------------------------------------------------------------
  4. /**
  5. * Define AVR_SOF_SPI nonzero to use software SPI on all AVR Arduinos.
  6. */
  7. #define AVR_SOFT_SPI 0
  8. //------------------------------------------------------------------------------
  9. /**
  10. * Define DUE_SOFT_SPI nonzero to use software SPI on Due Arduinos.
  11. */
  12. #define DUE_SOFT_SPI 0
  13. //------------------------------------------------------------------------------
  14. /**
  15. * Define LEONARDO_SOFT_SPI nonzero to use software SPI on Leonardo Arduinos.
  16. * LEONARDO_SOFT_SPI allows an unmodified 328 Shield to be used
  17. * on Leonardo Arduinos.
  18. */
  19. #define LEONARDO_SOFT_SPI 0
  20. //------------------------------------------------------------------------------
  21. /**
  22. * Define MEGA_SOFT_SPI nonzero to use software SPI on Mega Arduinos.
  23. * MEGA_SOFT_SPI allows an unmodified 328 Shield to be used
  24. * on Mega Arduinos.
  25. */
  26. #define MEGA_SOFT_SPI 0
  27. //------------------------------------------------------------------------------
  28. /**
  29. * Set TEENSY3_SOFT_SPI nonzero to use software SPI on Teensy 3.x boards.
  30. */
  31. #define TEENSY3_SOFT_SPI 0
  32. //------------------------------------------------------------------------------
  33. /**
  34. * Define software SPI pins. Default allows Uno shields to be used on other
  35. * boards.
  36. */
  37. // define software SPI pins
  38. /** Default Software SPI chip select pin */
  39. uint8_t const SOFT_SPI_CS_PIN = 10;
  40. /** Software SPI Master Out Slave In pin */
  41. uint8_t const SOFT_SPI_MOSI_PIN = 11;
  42. /** Software SPI Master In Slave Out pin */
  43. uint8_t const SOFT_SPI_MISO_PIN = 12;
  44. /** Software SPI Clock pin */
  45. uint8_t const SOFT_SPI_SCK_PIN = 13;