Home Forums PS2X PlayStation 2 Controller Library Support Forum Anyone got PS2 to work with Arduino Due?

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  osmaneralp 4 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3238

    osmaneralp
    Member

    I can get the PS2X lib to work with an Arduino Uno, but due to library problems, is does not work with an Arduino Due. I get messages such as this:

    C:\Users\osman\Documents\Arduino\libraries\PS2X_lib\PS2X_lib.cpp:185:9: error: invalid conversion from ‘Pio*’ to ‘uint32_t {aka long unsigned int}’ [-fpermissive]

    lport = digitalPinToPort(clk);

    The problem stems from the fact that the Due is not an AVR, and it seems that some of the AVR libs have not been ported to the Due yet. Has anyone been successful getting the PS2X lib to work with a Due?

    TIA,

    Osman

    #3239

    osmaneralp
    Member

    I rewrote a portion of PS2X_lib.cpp, and now it’s working on the Arduino Due. Let me know if you want the changes.

    #3298

    panargy
    Member

    Hello osman,

    Can you please give me the changes so I can use ps2x with my DUE?

    Thank you very much

    #3299

    osmaneralp
    Member

    I made a github repo for a project that includes the modified library. You can find the files here: https://github.com/osmaneralp/RED.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.