From f5a65921c900e35cbc0e8ae6a1b3b5f07a3dc096 Mon Sep 17 00:00:00 2001 From: Adam Preble Date: Sun, 21 Jun 2009 15:36:18 -0400 Subject: [PATCH] Updated instructions to reflect libusb-1.0. More JD.yaml. --- README.markdown | 11 +++++++- examples/pinproctest/JD.yaml | 50 ++++++++++++++++++++++++++++++------ 2 files changed, 52 insertions(+), 9 deletions(-) diff --git a/README.markdown b/README.markdown index 965fd17..348d05c 100644 --- a/README.markdown +++ b/README.markdown @@ -8,7 +8,8 @@ Library for Gerry Stellenberg's [P-ROC](http://pinballcontrollers.com/) (Pinball libpinproc requires: -- [libusb-0.1.12](http://libusb.wiki.sourceforge.net/): Install with the default /usr/local prefix. +- [libusb-0.1.12](http://libusb.wiki.sourceforge.net/): Install with the default /usr/local prefix. Version 0.1.12 has been tested on Mac and Linux. Mac users: If you want to use libpinproc under Cocoa or pygame, you may wish to try libusb 1.0. See below. + - [libftdi-0.16](http://www.intra2net.com/en/developer/libftdi/): Install with the default /usr/local prefix. The pinproctest example requires [yaml-cpp](http://code.google.com/p/yaml-cpp/). Follow the build instructions, creating the build subdirectory. After building, from the main source directory, run the following commands to manually install it: @@ -17,6 +18,14 @@ The pinproctest example requires [yaml-cpp](http://code.google.com/p/yaml-cpp/). sudo mkdir /usr/local/include/yaml-cpp sudo cp include/*.h /usr/local/include/yaml-cpp/ +##### libusb-1.0 and libusb-compat + +Version 1.0.2 does not work out of the box since libftdi is written against libusb-0.1. You can use the libusb-compat-0.1.2 project, however, which creates a library that provides the older libusb interface. Because Macs do not come with pkg-config, you may need to run configure for libusb-compat as follows: + + ./configure LIBUSB_1_0_CFLAGS=-I/usr/local/include/libusb-1.0 LIBUSB_1_0_LIBS="-L/usr/local/lib -lusb-1.0" + +Note that libusb-1.0 must have been built and installed prior to this step. This also assumes that you installed libusb-1.0 with the default /usr/local prefix. + #### Building with CMake Download and install [CMake](http://www.cmake.org/cmake/resources/software.html). Then: diff --git a/examples/pinproctest/JD.yaml b/examples/pinproctest/JD.yaml index 39ca4e5..cfa67d3 100644 --- a/examples/pinproctest/JD.yaml +++ b/examples/pinproctest/JD.yaml @@ -11,17 +11,43 @@ PRBumpers: - slingR PRSwitches: flipperLwR: - number: 1 + number: SF2 flipperLwL: - number: 3 + number: SF4 flipperUpR: - number: 5 + number: SF6 flipperUpL: - number: 7 + number: SF8 + fireL: + number: S11 + fireR: + number: S12 + startButton: + number: S13 + shooterLane: + number: S27 + buyIn: + number: S31 + ballShooter: + number: S41 + superGame: + number: S44 slingL: - number: 96 + number: S51 slingR: - number: 97 + number: S52 + outhole: + number: S18 + trough1: + number: S81 + trough2: + number: S82 + trough3: + number: S83 + trough4: + number: S84 + trough6: + number: S85 PRCoils: flipperLwRMain: number: 32 @@ -40,6 +66,14 @@ PRCoils: flipperUpLHold: number: 39 slingL: - number: 54 + number: C15 slingR: - number: 55 \ No newline at end of file + number: C16 + resetDropTarget: + number: C05 + trough: + number: C13 + shooterR: + number: C08 + shooterL: + number: C09 \ No newline at end of file