Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joysticks ohne Funktion ? #37

Open
DK0975 opened this issue Aug 30, 2023 · 4 comments
Open

Joysticks ohne Funktion ? #37

DK0975 opened this issue Aug 30, 2023 · 4 comments

Comments

@DK0975
Copy link

DK0975 commented Aug 30, 2023

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 ?

@SerEpicPanda
Copy link

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

@DK0975
Copy link
Author

DK0975 commented Aug 31, 2023

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

@SerEpicPanda
Copy link

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); }

@DK0975
Copy link
Author

DK0975 commented Aug 31, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants