This guide walks through installing the software called Arduino IDE (which stands for Integrated Development Environment) and uploading the provided code to their device. If any part of the walkthrough does not seem correct, see https://www.arduino.cc/en/Guide/HomePage for the official installation instructions, then return to see how to install the library.
To program an Arduino board you will need the Arduino IDE. Download the latest version of the IDE from thearduino.cc website. Run the Installer (arduino-1.8.x-windows.exe for Windows) and agree to the license terms.
Select desired options and press “Next” (shortcuts are optional)
Select installation location and press “Install”
Press “Install” or “Allow” for all Arduino driver installation popups
Close the installer once installation completes
We also need Adafruit’s library to simplify reading inputs from the joystick. Download the “SparkFun Qwiic Joystick Arduino Library” from Github. You can either go to the page and download from https://github.com/sparkfun/SparkFun_Qwiic_Joystick_Arduino_Library/ or use the download URL https://github.com/sparkfun/SparkFun_Qwiic_Joystick_Arduino_Library/archive/master.zip
Unzip “SparkFun_Qwiic_Joystick_Arduino_Library-master.zip” and copy the folder to “C:\Users\<YOUR_USERNAME>\Documents\Arduino\libraries”
Checking the Install
To verify that the installation was successful and you can successfully connect to the board, we will upload one of the built in examples. Open the IDE and press “File” > “Examples” > “01.Basics” > “Blink”. This will open a short file that blinks the onboard LED.
Connect your Arduino to the computer and select “File” > “Port” > “COM[X]” from the toolbar (the number depends on the USB port your board is connected to)
Press the upload button (the arrow pointing to the right in the upper left corner). Check that it indicates a successful upload in the console at the bottom. If everything is working, an onboard LED should be blinking on and off every second.
You are now ready to upload the other provided examples following their directions, or even write your own!
Comentarios