Skip to content

Commit c5414b5

Browse files
committed
Remove shield pin macros
These were well-intentioned and easy for the end user, but they aren't flexible. The G25/G27 shifters require different pin arguments and do not work on the v1 shield. These macros have been superseded by the `CreateShieldObject` template function.
1 parent 9390030 commit c5414b5

2 files changed

Lines changed: 0 additions & 41 deletions

File tree

keywords.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,3 @@ Accelerator LITERAL1
193193
Throttle LITERAL1
194194
Brake LITERAL1
195195
Clutch LITERAL1
196-
197-
# Board Pin Definitions
198-
SHIFTER_SHIELD_V1_PINS LITERAL1
199-
PEDAL_SHIELD_V1_PINS LITERAL1

src/SimRacing.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,43 +1280,6 @@ namespace SimRacing {
12801280
*/
12811281
template<>
12821282
LogitechShifterG25 CreateShieldObject<LogitechShifterG25, 2>();
1283-
1284-
1285-
/**
1286-
* Pin definitions for the Parts Not Included Logitech Shifter Shield,
1287-
* designed for the SparkFun Pro Micro:
1288-
*
1289-
* * X Wiper: A1
1290-
* * Y Wiper: A0
1291-
* * Reverse Pin: 14
1292-
* * Detect Pin: A2
1293-
*
1294-
* This macro can be inserted directly into the constructor in place of the
1295-
* normal pin definitions:
1296-
*
1297-
* @code{.cpp}
1298-
* SimRacing::LogitechShifter shifter(SHIFTER_SHIELD_V1_PINS);
1299-
* @endcode
1300-
*/
1301-
#define SHIFTER_SHIELD_V1_PINS A1, A0, 14, A2
1302-
1303-
/**
1304-
* Pin definitions for the Parts Not Included Logitech Pedals Shield,
1305-
* designed for the SparkFun Pro Micro:
1306-
*
1307-
* * Gas Wiper: A2
1308-
* * Brake Wiper: A1
1309-
* * Clutch Wiper: A0
1310-
* * Detect Pin: 10
1311-
*
1312-
* This macro can be inserted directly into the constructor in place of the
1313-
* normal pin definitions:
1314-
*
1315-
* @code{.cpp}
1316-
* SimRacing::LogitechPedals pedals(PEDAL_SHIELD_V1_PINS);
1317-
* @endcode
1318-
*/
1319-
#define PEDAL_SHIELD_V1_PINS A2, A1, A0, 10
13201283
#endif
13211284

13221285
} // end SimRacing namespace

0 commit comments

Comments
 (0)