This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE eagle SYSTEM "eagle.dtd"> | |
<eagle version="6.4"> | |
<drawing> | |
<settings> | |
<setting alwaysvectorfont="no"/> | |
<setting verticaltext="up"/> | |
</settings> | |
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/> | |
<layers> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Glue together PS2X controller code with DFRobot Motor Shield code | |
// | |
#include <PS2X_lib.h> //for v1.6 | |
PS2X ps2x; // create PS2 Controller Class | |
//right now, the library does NOT support hot pluggable controllers, meaning | |
//you must always either restart your Arduino after you conect the controller, | |
//or call config_gamepad(pins) again after connecting the controller. | |
int error = 0; |