Skip to content

Commit e4d9462

Browse files
committed
Updated formatting
1 parent 4c983c7 commit e4d9462

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ Sets the Y axis rotation value. Range 0° to 360°.
8181
Sets the Z axis rotation value. Range 0° to 360°.
8282

8383
###Joystick.setButton(byte button, byte value)
84-
Sets the state (0 or 1) of the specified button (range: 0 - (buttonCount - 1)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
84+
Sets the state (`0` or `1`) of the specified button (range: `0` - (`buttonCount - 1`)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
8585

8686
###Joystick.pressButton(byte button)
87-
Press the indicated button (range: 0 - (buttonCount - 1)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
87+
Press the indicated button (range: `0` - (`buttonCount - 1`)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
8888

8989
###Joystick.releaseButton(byte button)
90-
Release the indicated button (range: 0 - (buttonCount - 1)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
90+
Release the indicated button (range: `0` - (`buttonCount - 1`)). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
9191

9292
###Joystick.setThrottle(byte value)
9393
Sets the throttle value. Range 0 to 255.
@@ -102,7 +102,12 @@ Sets the value of the specified hat switch. The hatSwitch is 0-based (i.e. hat s
102102
Sends the updated joystick state to the host computer. Only needs to be called if AutoSendState is false (see Joystick.begin for more details).
103103

104104
##Testing Details
105-
I used this library to make an Arduino appear as 1, 2, 3, and 4 joysticks / gamepads.
105+
I have used this library to make an Arduino appear as the following:
106+
107+
- 1 joystick / gamepad
108+
- 2 joysticks / gamepads
109+
- 3 joysticks / gamepads
110+
- 4 joysticks / gamepads
106111

107112
I have tested with 1 - 32 buttons.
108113

@@ -117,4 +122,4 @@ I have tested this library with the following boards:
117122
- Arduino Leonardo
118123
- Arduino Micro
119124

120-
(as of 2016-05-20)
125+
(as of 2016-05-22)

0 commit comments

Comments
 (0)