irgendwas

This commit is contained in:
danielvici123
2025-01-22 10:10:30 +01:00
parent 1507b7d590
commit b6eafc20e5
29 changed files with 3241 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
#include <Ps3Controller.h>
void setup()
{
Serial.begin(115200);
Ps3.begin("01:02:03:04:05:06");
Serial.println("Ready.");
}
void loop()
{
if(Ps3.isConnected()){
if( Ps3.data.button.cross ){
Serial.println("Pressing the cross button");
}
if( Ps3.data.button.square ){
Serial.println("Pressing the square button");
}
if( Ps3.data.button.triangle ){
Serial.println("Pressing the triangle button");
}
if( Ps3.data.button.circle ){
Serial.println("Pressing the circle button");
}
}
}