|
30 | 30 | // These are the Arduino devices that can be used. I'm sure others would work,
|
31 | 31 | // but these are the only ones I have to test with. Only one of these should
|
32 | 32 | // be uncommented.
|
33 |
| -#define ARDUINO_UNO // Arduino Uno board |
| 33 | +//#define ARDUINO_UNO // Arduino Uno board |
34 | 34 | //#define ARDUINO_MEGA // Arduino Mega 2560/ADK board
|
| 35 | +#define ARDUINO_TEENSY // PJRC Teensy 2.0 |
35 | 36 |
|
36 | 37 | // Uncomment this line if you are using an LCD display
|
37 | 38 | //#define LCD_DISPLAY
|
38 | 39 |
|
39 | 40 | // Uncomment this line if you are using a hardware button for image selection
|
40 |
| -#define SELECTOR_BUTTON |
| 41 | +//#define SELECTOR_BUTTON |
41 | 42 |
|
42 | 43 | // Uncomment this line if you want a reset button (automatically mounts /AUTORUN.ATR)
|
43 |
| -//#define RESET_BUTTON |
| 44 | +#define RESET_BUTTON |
44 | 45 |
|
45 | 46 | // uncomment if using an Ethernet shield for SD capabilities
|
46 | 47 | //#define ETHERNET_SHIELD
|
|
62 | 63 | * These are the Arduino pin definitions.
|
63 | 64 | */
|
64 | 65 |
|
| 66 | +#if defined(ARDUINO_MEGA) || defined(ARDUINO_UNO) |
65 | 67 | #define PIN_ATARI_CMD 2 // the Atari SIO command line - usually the purple wire on the SIO cable
|
| 68 | +#endif |
| 69 | +#ifdef ARDUINO_TEENSY |
| 70 | +#define PIN_ATARI_CMD 4 // the Atari SIO command line - usually the purple wire on the SIO cable |
| 71 | +#endif |
66 | 72 |
|
67 | 73 | // for now, you can't change these pin definitions
|
68 | 74 | #ifdef ETHERNET_SHIELD
|
|
73 | 79 | #define PIN_SD_DI 51 // the SD breakout board's DI pin
|
74 | 80 | #define PIN_SD_DO 50 // the SD breakout board's DO pin
|
75 | 81 | #define PIN_SD_CLK 52 // the SD breakout board's CLK pin
|
76 |
| - #else |
| 82 | + #endif |
| 83 | + #ifdef ARDUINO_UNO |
77 | 84 | #define PIN_SD_CS 10 // the SD breakout board's CS (chip select) pin
|
78 | 85 | #define PIN_SD_DI 11 // the SD breakout board's DI pin
|
79 | 86 | #define PIN_SD_DO 12 // the SD breakout board's DO pin
|
80 | 87 | #define PIN_SD_CLK 13 // the SD breakout board's CLK pin
|
81 | 88 | #endif
|
| 89 | + #ifdef ARDUINO_TEENSY |
| 90 | + #define PIN_SD_CS 0 // the SD breakout board's CS (chip select) pin |
| 91 | + #define PIN_SD_DI 1 // the SD breakout board's DI pin |
| 92 | + #define PIN_SD_DO 2 // the SD breakout board's DO pin |
| 93 | + #define PIN_SD_CLK 3 // the SD breakout board's CLK pin |
| 94 | + #endif |
82 | 95 | #endif
|
83 | 96 |
|
84 | 97 | #ifdef SELECTOR_BUTTON
|
85 | 98 | #define PIN_SELECTOR 3 // the selector button pin
|
86 | 99 | #endif
|
87 | 100 |
|
88 | 101 | #ifdef RESET_BUTTON
|
89 |
| - #define PIN_RESET 3 // the reset button pin |
| 102 | + #define PIN_RESET 5 // the reset button pin |
90 | 103 | #endif
|
91 | 104 |
|
92 | 105 | #ifdef LCD_DISPLAY
|
|
108 | 121 | #endif
|
109 | 122 |
|
110 | 123 | // the hardware UART to use for SIO bus communication
|
111 |
| -#ifdef ARDUINO_MEGA |
| 124 | +#if defined(ARDUINO_MEGA) || defined(ARDUINO_TEENSY) |
112 | 125 | #define SIO_UART Serial1
|
113 | 126 | #define SIO_CALLBACK serialEvent1
|
114 | 127 | #else
|
|
128 | 141 | #define LOG_MSG_CR(...)
|
129 | 142 | #endif
|
130 | 143 |
|
131 |
| -#endif |
| 144 | +#endif |
0 commit comments