aed3 / PS4-esp32

Use a ps4 controller with an esp32
334 stars 104 forks source link

Analog readings into variables on l2 l3 etc #5

Closed rickwinter2 closed 4 years ago

rickwinter2 commented 4 years ago

I've tried setting a variable to send out from the following if ( PS4.data.button.l2 ) { Serial.print("l2 button at "); Serial.println(PS4.data.analog.button.l2, DEC); Ps4keyl2 = (PS4.data.analog.button.l2, DEC);
} The variable doesnt record the value. How would I code this?

rickwinter2 commented 4 years ago

Sorry it was easy Ps4keyl2 = PS4.data.analog.button.l2;