Beberapa step untuk memasang ESP32 di Arduino IDE, yaitu
1. pastikan sudah instal git, python dan pip buat python
sudo usermod -a -G dialout $USER && sudo apt-get install git && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py && sudo pip install pyserial
2.Cari folder instalasi arduino di PC
cd /opt/arduino-1.6.11/hardware mkdir espressif cd espressif
3. Clone dari git
git clone https://github.com/espressif/arduino-esp32.git esp32 && cd esp32/tools/ && python get.py
4. Tes di arduino IDE
//Contoh code blink buat test pertama
int LED_BUILTIN = 2; void setup() { Serial.begin(115200); pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); Serial.println("WHY always me?");// wait for a second }
Share This :
0 comments