0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PS4Controller.h備忘録

Last updated at Posted at 2023-06-11

ESP32 Dev ModuleのVer 1.0.6で動作確認済み
https://github.com/404background/PS4-esp32
こちらのページにあるライブラリをダウンロードするとライブラリを書き換えずにそのまま使える。

cp2102のドライバが必要(ボードによる)
https://jp.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
↑のページでドライバがダウンロードできる

https://sixaxispairtool.software.informer.com/download/
このソフトを使ってPS4のコントローラの接続先macアドレス(ESP32のmacアドレス)を書き換える
ESP32のmacアドレスは

void setup(void) {
  Serial.begin(115200);
  Serial.println("-----------------");
  uint8_t macBT[6];
  esp_read_mac(macBT, ESP_MAC_BT);
  Serial.printf("%02X:%02X:%02X:%02X:%02X:%02X\r\n", macBT[0], macBT[1], macBT[2], macBT[3], macBT[4], macBT[5]);
}

void loop() {
  delay(1000);
}

で取得する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?