Package com.pi4j.wiringpi
Class Nes
- java.lang.Object
- 
- com.pi4j.wiringpi.Nes
 
- 
 public class Nes extends Object Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries: - pi4j
- wiringPi
 This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/) - Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
- https://pi4j.com/, http://wiringpi.com/dev-lib/
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intMAX_NES_JOYSTICKSstatic intNES_Astatic intNES_Bstatic intNES_DOWNstatic intNES_LEFTstatic intNES_RIGHTstatic intNES_SELECTstatic intNES_STARTstatic intNES_UPstatic intPULSE_TIME
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intreadNesJoystick(int joystick)readNesJoystick:static intsetupNesJoystick(int dPin, int cPin, int lPin)setupNesJoystick:
 
- 
- 
- 
Field Detail- 
NES_RIGHTpublic static final int NES_RIGHT - See Also:
- Constant Field Values
 
 - 
NES_LEFTpublic static final int NES_LEFT - See Also:
- Constant Field Values
 
 - 
NES_DOWNpublic static final int NES_DOWN - See Also:
- Constant Field Values
 
 - 
NES_UPpublic static final int NES_UP - See Also:
- Constant Field Values
 
 - 
NES_STARTpublic static final int NES_START - See Also:
- Constant Field Values
 
 - 
NES_SELECTpublic static final int NES_SELECT - See Also:
- Constant Field Values
 
 - 
NES_Bpublic static final int NES_B - See Also:
- Constant Field Values
 
 - 
NES_Apublic static final int NES_A - See Also:
- Constant Field Values
 
 - 
PULSE_TIMEpublic static final int PULSE_TIME - See Also:
- Constant Field Values
 
 - 
MAX_NES_JOYSTICKSpublic static final int MAX_NES_JOYSTICKS - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setupNesJoystickpublic static int setupNesJoystick(int dPin, int cPin, int lPin)setupNesJoystick: Create a new NES joystick interface, program the pins, etc. - Parameters:
- dPin- data pin
- cPin- clock pin
- lPin- pin number
- Returns:
- return joystick handle
 
 - 
readNesJoystickpublic static int readNesJoystick(int joystick) readNesJoystick: Do a single scan of the NES Joystick. - Parameters:
- joystick- joystick handle
- Returns:
- return value
 
 
- 
 
-