차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:arduino_joystick_for_x-wing_alliance [2017/01/02 00:31] V_Ltech:arduino_joystick_for_x-wing_alliance [2021/11/29 13:45] (현재) 61.74.132.138
줄 1: 줄 1:
    
 {{tag>arduino joystick for x-wing alliance}} {{tag>arduino joystick for x-wing alliance}}
-====== 엑스윙 얼라이언스를 위한 아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ====== +======아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ======
-{{INLINETOC}}+
  
 [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다. [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다.
줄 9: 줄 8:
  
 만들것이다. 만들것이다.
- 
  
   * 아날로그 조이스틱 -> USB조이스틱   * 아날로그 조이스틱 -> USB조이스틱
줄 43: 줄 41:
   * 보라 - 3   * 보라 - 3
   * 회색 - 4   * 회색 - 4
- 
- 
  
 ====저항연결법==== ====저항연결법====
줄 61: 줄 57:
  
 =====코드===== =====코드=====
- 
  
 <file cpp> <file cpp>
줄 68: 줄 63:
  
    Arduino Leonado or micro is needed    Arduino Leonado or micro is needed
- 
- 
  
   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS
줄 91: 줄 84:
   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering
 */ */
- 
  
 // constants won't change. They're used here to // constants won't change. They're used here to
줄 167: 줄 159:
      Buttons      Buttons
   */   */
- 
  
   // read the state of pins:   // read the state of pins:
줄 188: 줄 179:
 } }
 </file> </file>
 +
 +
 +=====미세조정 하는 방법=====
 +{{:tech:arduino_joystick_for_x-wing_alliance_3509.png}}
 +
 +