!ArduinoIDE でやる場合 PRG-arduino-esp32 ! micropython ESP32-micropython ! インストール手順 https://esp-idf.readthedocs.io/en/latest/get-started/linux-setup.html !概要 zypper install gcc git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache dfu-tool libusb git clone --recursive https://github.com/espressif/esp-idf.git cd ./esp-idf git submodule update --init # ToolChain のダウンロード wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz ## wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz !BTstack git clone https://github.com/bluekitchen/btstack.git ./integrate_btstack.py ! WiiRemote ## linux is https://github.com/RaphaelWimmer/wiimote.py https://wiibrew.org/wiki/Wiimote https://github.com/MinatsuT/esp32_wii_remote ! BlueTooth https://www.bluetooth.com/ja-jp/specifications/assigned-numbers/service-discovery #include "BluetoothSerial.h" //Header File for Serial Bluetooth, will be added by default into Arduino BluetoothSerial ESP_BT; //Object for Bluetooth void setup() { Serial.begin(115200); //Start Serial monitor in 9600 ESP_BT.begin("ESP32_LED_Control"); //Name of your Bluetooth Signal Serial.println("Bluetooth Device is Ready to Pair"); } void loop() { // put your main code here, to run repeatedly: } !set-env.sh export LANG=C export MD=$HOME/opt export PATH=$PATH:$MD/esp/xtensa-esp32-elf/bin export ESPIDF=$MD/esp/esp-idf # export IDF_PATH=$MD/esp/esp-idf/ export IDF_PATH=$MD/esp/esp-idf