Thank you for posting your video. I am having trouble connecting my Bala2 to the PS4 controller. Do you have any code you could share?
@LIGHTCAFELAB22 дні тому
I'm glad to your comment. By the way, I will write down about How to connect your DS4 to BALA2 that you asked me. At first, would you want to use DS4?(PS4 controller). In my case, I use DS3(PS3 controller) I also use a library for DS3 so that it might be the problem. And, these are really sketchy codes. So If wont work what you want, please ask again. Let me think what the problem.
@LIGHTCAFELAB22 дні тому
I found a memorandom that I had set a connection between M5 and DS3 And I attached URLs what I use it as a reference. Step1. check a mac address of your M5(on BALA2) community.m5stack.com/topic/4568/where-can-i-find-the-mac-address qiita.com/coppercele/items/0724b0b951868044223b Arduino codes is this void setup(void) { Serial.begin(115200); uint8_t btmac[6]; esp_read_mac(btmac, ESP_MAC_BT); Serial.printf("[Bluetooth] Mac Address = %02X:%02X:%02X:%02X:%02X:%02X ", btmac[0], btmac[1], btmac[2], btmac[3], btmac[4], btmac[5]); } void loop() { } Step2. write the mac address to your DS3 controller (you need a raspi or an ubuntu PC) www.pabr.org/sixlinux/sixlinux.en.html# commands are like these. # wget www.pabr.org/sixlinux/sixpair.c # gcc -o sixpair sixpair.c -lusb # ./sixpair Current Bluetooth master: xx:xx:xx:xx:xx:xx Setting master bd_addr to xx:xx:xx:xx:xx:xx <--- write your M5's mac address Step3. Check a connection between DS3 to M5(on BALA2) //include a library #include <Ps3Controller.h> void setup() { // Initialize the M5Stack object //PS3は必ず最初に入れる(M5を初期化してからだと何かとぶつかりモータと画面が動かない)<--- I had memoramdomed that connect command must place first on setup() //================================== //Ps3.attach(notify); Ps3.attachOnConnect(onConnect); Ps3.begin("XX:XX:XX:XX:XX:XX"); M5.begin(true, false, false, false); //================================== Finally, press PS button and then connectting to M5 I wish these helps you.
@kitwolf285710 днів тому
@@LIGHTCAFELAB Thank you very much for your help. I really appreciate it. In the end I managed to use DABBLE to control it. But I am likely to try the PS4 controller again later.