From fcf1d59cd83329a0810b16e27ae337005b6bf744 Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 17 Jun 2022 01:29:18 -0400 Subject: [PATCH 1/3] Add shield pin versions of objects to examples Commented out by default --- examples/Pedals/PedalsJoystick/PedalsJoystick.ino | 1 + examples/Pedals/PedalsPrint/PedalsPrint.ino | 1 + examples/Shifter/ShiftJoystick/ShiftJoystick.ino | 1 + examples/Shifter/ShiftPrint/ShiftPrint.ino | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/Pedals/PedalsJoystick/PedalsJoystick.ino b/examples/Pedals/PedalsJoystick/PedalsJoystick.ino index c09ca1d..4c6a9c1 100644 --- a/examples/Pedals/PedalsJoystick/PedalsJoystick.ino +++ b/examples/Pedals/PedalsJoystick/PedalsJoystick.ino @@ -36,6 +36,7 @@ const int Pin_Brake = A1; const int Pin_Clutch = A0; SimRacing::LogitechPedals pedals(Pin_Gas, Pin_Brake, Pin_Clutch); +//SimRacing::LogitechPedals pedals(PEDAL_SHIELD_V1_PINS); Joystick_ Joystick( JOYSTICK_DEFAULT_REPORT_ID, // default report (no additional pages) diff --git a/examples/Pedals/PedalsPrint/PedalsPrint.ino b/examples/Pedals/PedalsPrint/PedalsPrint.ino index 348e841..cb8c17b 100644 --- a/examples/Pedals/PedalsPrint/PedalsPrint.ino +++ b/examples/Pedals/PedalsPrint/PedalsPrint.ino @@ -32,6 +32,7 @@ const int Pin_Brake = A1; const int Pin_Clutch = A0; SimRacing::LogitechPedals pedals(Pin_Gas, Pin_Brake, Pin_Clutch); +//SimRacing::LogitechPedals pedals(PEDAL_SHIELD_V1_PINS); void setup() { diff --git a/examples/Shifter/ShiftJoystick/ShiftJoystick.ino b/examples/Shifter/ShiftJoystick/ShiftJoystick.ino index e99052b..d0f0f37 100644 --- a/examples/Shifter/ShiftJoystick/ShiftJoystick.ino +++ b/examples/Shifter/ShiftJoystick/ShiftJoystick.ino @@ -45,6 +45,7 @@ const int Pin_ShifterY = A2; const int Pin_ShifterRev = 2; SimRacing::LogitechShifter shifter(Pin_ShifterX, Pin_ShifterY, Pin_ShifterRev); +//SimRacing::LogitechShifter shifter(SHIFTER_SHIELD_V1_PINS); const int Gears[] = { 1, 2, 3, 4, 5, 6, -1 }; const int NumGears = sizeof(Gears) / sizeof(Gears[0]); diff --git a/examples/Shifter/ShiftPrint/ShiftPrint.ino b/examples/Shifter/ShiftPrint/ShiftPrint.ino index 11893c0..f22a913 100644 --- a/examples/Shifter/ShiftPrint/ShiftPrint.ino +++ b/examples/Shifter/ShiftPrint/ShiftPrint.ino @@ -32,6 +32,7 @@ const int Pin_ShifterY = A2; const int Pin_ShifterRev = 2; SimRacing::LogitechShifter shifter(Pin_ShifterX, Pin_ShifterY, Pin_ShifterRev); +//SimRacing::LogitechShifter shifter(SHIFTER_SHIELD_V1_PINS); const unsigned long PrintSpeed = 1500; // ms unsigned long lastPrint = 0; From b1bf7daa9d074e9f49f44aaec063fd25ea5bfe2a Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 17 Jun 2022 01:39:30 -0400 Subject: [PATCH 2/3] Add shields blurb to supported device pages --- docs/pages/devices/logitech_pedals.md | 6 ++++++ docs/pages/devices/logitech_shifter.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/pages/devices/logitech_pedals.md b/docs/pages/devices/logitech_pedals.md index ac66298..d9fec7a 100644 --- a/docs/pages/devices/logitech_pedals.md +++ b/docs/pages/devices/logitech_pedals.md @@ -6,6 +6,12 @@ The 2-pedal peripheral included with the [Logitech Driving Force GT wheel](https See the PedalsPrint.ino and PedalsJoystick.ino examples for reference. +## Adapters + +An open source shield is available to connect the three pedal peripheral to a [SparkFun Pro Micro](https://github.com/sparkfun/Pro_Micro). The design comes with a 3D printable case and custom board files so that the device appears as "Sim Racing Pedals" over USB. You can use this shield to build an inexpensive USB HID adapter. + +You can find all of the necessary files in [the project repository](https://github.com/dmadison/Sim-Racing-Shields). Please note that this shield is *not* compatible with the two pedal peripheral. + ## Connector | ![DE-9](DE9_Male.svg) | ![DE-9_Female](DE9_Female.svg) | diff --git a/docs/pages/devices/logitech_shifter.md b/docs/pages/devices/logitech_shifter.md index 2fbde25..6e8aeaa 100644 --- a/docs/pages/devices/logitech_shifter.md +++ b/docs/pages/devices/logitech_shifter.md @@ -4,6 +4,12 @@ The [Logitech Driving Force Shifter](https://www.logitechg.com/en-us/products/dr See the ShiftPrint.ino and ShiftJoystick.ino examples for reference. +## Adapters + +An open source shield is available to connect the shifter to a [SparkFun Pro Micro](https://github.com/sparkfun/Pro_Micro). The design comes with a 3D printable case and custom board files so that the device appears as a "Sim Racing Shifter" over USB. You can use this shield to build an inexpensive USB HID adapter. + +You can find all of the necessary files in [the project repository](https://github.com/dmadison/Sim-Racing-Shields). + ## Connector | ![DE-9_Male](DE9_Male.svg) | ![DE-9_Female](DE9_Female.svg) | From 13cd8a1978f6b0f754a7233c4e80af4bb7049234 Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 17 Jun 2022 01:49:12 -0400 Subject: [PATCH 3/3] Add shields blurb to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0141d5a..7834aa7 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ Run one of the library examples in the Arduino IDE by going to `File -> Examples * [Logitech Three Pedal Peripheral (Gas, Brake, Clutch)](http://dmadison.github.io/Sim-Racing-Arduino/docs/logitech_pedals.html) * [Logitech Driving Force Shifter](http://dmadison.github.io/Sim-Racing-Arduino/docs/logitech_shifter.html) +## Adapters + +Open source shields are available to connect the [Logitech Three Pedal Peripheral](http://dmadison.github.io/Sim-Racing-Arduino/docs/logitech_pedals.html) and the [Logitech Driving Force Shifter](http://dmadison.github.io/Sim-Racing-Arduino/docs/logitech_shifter.html) to a [SparkFun Pro Micro](https://github.com/sparkfun/Pro_Micro). The design comes with a 3D printable case and custom board files so that the adapter appears with a custom identity and "Sim Racing" name over USB. You can use these shields to build an inexpensive USB HID adapter. + +You can find all of the necessary files in [the project repository](https://github.com/dmadison/Sim-Racing-Shields). + ## License This library is licensed under the terms of the [GNU Lesser General Public License (LGPL)](https://www.gnu.org/licenses/lgpl.html), either version 3 of the License, or (at your option) any later version. See the [LICENSE](https://github.com/dmadison/Sim-Racing-Arduino/blob/master/LICENSE) file for more information.