Home › Forums › PS2X PlayStation 2 Controller Library Support Forum › Does the PS2X work with Arduino 1.0.5-r2 ?
- This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by Anonymous.
-
AuthorPosts
-
August 5, 2014 at 8:16 am #3205AnonymousInactive
Hello,
I am using Arduino 1.0.5-r2 and am not able to get the PS2X_Example to compile. I was wondering if the PS2X library is not compatible with the current version of Arduino or if there is something I have done wrong in my setup?
When I try to verify the PS2x_Example code I get the following error messages:
PS2X_Example:3: error: ‘PS2X’ does not name a type
PS2X_Example.ino: In function ‘void setup()’:
PS2X_Example:17: error: ‘ps2x’ was not declared in this scope
PS2X_Example.ino: In function ‘void loop()’:
PS2X_Example:68: error: ‘ps2x’ was not declared in this scope
PS2X_Example:70: error: ‘GREEN_FRET’ was not declared in this scope
PS2X_Example:72: error: ‘RED_FRET’ was not declared in this scope
PS2X_Example:74: error: ‘YELLOW_FRET’ was not declared in this scope
PS2X_Example:76: error: ‘BLUE_FRET’ was not declared in this scope
PS2X_Example:78: error: ‘ORANGE_FRET’ was not declared in this scope
PS2X_Example:82: error: ‘STAR_POWER’ was not declared in this scope
PS2X_Example:85: error: ‘UP_STRUM’ was not declared in this scope
PS2X_Example:87: error: ‘DOWN_STRUM’ was not declared in this scope
PS2X_Example:91: error: ‘PSB_START’ was not declared in this scope
PS2X_Example:93: error: ‘PSB_SELECT’ was not declared in this scope
PS2X_Example:97: error: ‘ORANGE_FRET’ was not declared in this scope
PS2X_Example:100: error: ‘WHAMMY_BAR’ was not declared in this scope
PS2X_Example:106: error: ‘ps2x’ was not declared in this scope
PS2X_Example:108: error: ‘PSB_START’ was not declared in this scope
PS2X_Example:110: error: ‘PSB_SELECT’ was not declared in this scope
PS2X_Example:114: error: ‘PSB_PAD_UP’ was not declared in this scope
PS2X_Example:116: error: ‘PSAB_PAD_UP’ was not declared in this scope
PS2X_Example:118: error: ‘PSB_PAD_RIGHT’ was not declared in this scope
PS2X_Example:120: error: ‘PSAB_PAD_RIGHT’ was not declared in this scope
PS2X_Example:122: error: ‘PSB_PAD_LEFT’ was not declared in this scope
PS2X_Example:124: error: ‘PSAB_PAD_LEFT’ was not declared in this scope
PS2X_Example:126: error: ‘PSB_PAD_DOWN’ was not declared in this scope
PS2X_Example:128: error: ‘PSAB_PAD_DOWN’ was not declared in this scope
PS2X_Example:132: error: ‘PSAB_BLUE’ was not declared in this scope
PS2X_Example:140: error: ‘PSB_L3’ was not declared in this scope
PS2X_Example:142: error: ‘PSB_R3’ was not declared in this scope
PS2X_Example:144: error: ‘PSB_L2’ was not declared in this scope
PS2X_Example:146: error: ‘PSB_R2’ was not declared in this scope
PS2X_Example:148: error: ‘PSB_GREEN’ was not declared in this scope
PS2X_Example:154: error: ‘PSB_RED’ was not declared in this scope
PS2X_Example:157: error: ‘PSB_PINK’ was not declared in this scope
PS2X_Example:160: error: ‘PSB_BLUE’ was not declared in this scope
PS2X_Example:164: error: ‘PSB_L1’ was not declared in this scope
PS2X_Example:164: error: ‘PSB_R1’ was not declared in this scope
PS2X_Example:167: error: ‘PSS_LY’ was not declared in this scope
PS2X_Example:169: error: ‘PSS_LX’ was not declared in this scope
PS2X_Example:171: error: ‘PSS_RY’ was not declared in this scope
PS2X_Example:173: error: ‘PSS_RX’ was not declared in this scope
Thanks to Bill for writing and sharing the code and thanks to anyone for any help I can get on this.
August 5, 2014 at 8:51 am #3206Michael P. FlagaMemberYou must move the PS2X_lib folder to your .\Documents\Arduino\libraries\. directory.
Example.
C:\Users\mflaga\Documents\Arduino\libraries\PS2X_lib
This allows the Compiler to find all the information from the library.
I just tested that it compiles on all 1.0.5, 1.0.5r2, 1.5.6.r2 and 1.5.7
August 5, 2014 at 9:07 am #3207AnonymousInactiveThank you Michael,
I thought that my PS2x_lib folder was in the libraries folder, but it was in a PS2X folder that was in the libraries folder. I moved the folder up one level and now it compiles with no problems.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.