mirror of
https://github.com/preble/libpinproc
synced 2026-02-22 18:15:25 +01:00
Updated instructions to reflect libusb-1.0. More JD.yaml.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
number: C16
|
||||
resetDropTarget:
|
||||
number: C05
|
||||
trough:
|
||||
number: C13
|
||||
shooterR:
|
||||
number: C08
|
||||
shooterL:
|
||||
number: C09
|
||||
Reference in New Issue
Block a user