Skip to content

Joysticks ohne Funktion ? #37

Description

@DK0975

Hallo. Ich habe einen PS2 Wireless Controller genauso angeschlossen wie es für das Beispiel erforderlich ist. Alles mehrfach kontrolliert. Im seriellen Monitor kommt bei allen Tasten eine Ausgabebestätigung. Beim drücken der Joysticks kommt die Meldung da R3, bzw. L3 gedrückt wurde. Beim betätigen der Joysticks in X oder Y (egal ob rechts oder links) kommt im seriellen Monitor keine Ausgabe. Woran könnte das liegen ?

Activity

  1. SerEpicPanda commented on Aug 31, 2023

    @SerEpicPanda

    Just checking that you are holding R1 or L1 to print the values as is in the example?

  2. DK0975 commented on Aug 31, 2023

    @DK0975
    Author

    Beim drücken von L1 oder R1 bekomme ich Werte (weiß aber jetzt nicht welche).

  3. SerEpicPanda commented on Aug 31, 2023

    @SerEpicPanda

    In this bit of code it shows which values are printed whilst R1 or L1 are pressed. In this case LY, LX, RY, RX. you could add labels in the print statements to make it clearer.

    if(ps2x.Button(PSB_L1) || ps2x.Button(PSB_R1)) { //print stick values if either is TRUE Serial.print("Stick Values:"); Serial.print(ps2x.Analog(PSS_LY), DEC); //Left stick, Y axis. Other options: LX, RY, RX Serial.print(","); Serial.print(ps2x.Analog(PSS_LX), DEC); Serial.print(","); Serial.print(ps2x.Analog(PSS_RY), DEC); Serial.print(","); Serial.println(ps2x.Analog(PSS_RX), DEC); }

  4. DK0975 commented on Aug 31, 2023

    @DK0975
    Author

    Okay. Es funktioniert. Vielen Dank für die Hilfe. Das ist ja eine UND-Funktion von R1(L1) mit dem jeweiligen Stick. Schade das die Joysticks nicht separat genutzt werden können.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions