From 1834a5049697c72320a5e8361551a815d85d3252 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 13 Nov 2015 00:58:24 -0500 Subject: [PATCH] Clean up readme a bit more. --- Readme.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index db6fe94..845e609 100644 --- a/Readme.md +++ b/Readme.md @@ -8,9 +8,11 @@ This is a library that builds and sends USB HID Joystick reports, making it easy ## Installation 1. Put the arduino-joystick directory into your Arduino libraries directory. 2. Make sure Bounce2 is installed! -3. In your arduino sketch, add the includes: + +## Usage +1. In your arduino sketch, add the includes: #include #include -4. Create a Joystick object: +2. Create a Joystick object: Joystick joystick; -5. Add buttons and axes in setup() with Joystick::AddButton(), and call Joystick::Update() in loop(). That's it! +3. Add buttons and axes in setup() with Joystick::AddButton(), and call Joystick::Update() in loop(). That's it!