/ src / chapter_4.md
chapter_4.md
 1  # Chapter 4  (How to use `aci` Part 3)
 2  
 3  By the end of this chapter , you will be able to add 3rd party cores to the `aci` tools. 
 4  These 3rd party cores are required to be able to use boards like ESP32 and ESP8266. 
 5  
 6  To do this , we have to first create the config file. 
 7  To create the config file , type the following in the terminal 
 8  
 9  ```bash
10  arduino-cli config init 
11  ```
12  
13  This will create the `config.yaml` file at `/home/<username>/.arduino15/arduino-cli.yaml`. 
14  
15  The previous step is optional. Because the script itself will create it for you. 
16  Just incase it doesn't , you have to create the .yaml file using the command given above. 
17  
18  To do the above , type `aci` in the terminal , navigate to **Edit Configurations** option and choose your
19  preferred editor. 
20  
21  Then copy and paste the following links for : 
22  
23  1. ESP8266
24  
25  `http://arduino.esp8266.com/stable/package_esp8266com_index.json`
26  
27  2. ESP32 
28  
29  `https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json`
30  
31  Then exit the editor. 
32  
33  Then in the terminal type :
34  
35  ```bash
36  arduino-cli core update-index
37  arduino-cli core install esp32:esp32 (esp8266:esp8266 for ESP8266)
38  arduino-cli board install 
39  
40  #To list all boards 
41  arduino-cli board listall
42  ```
43  
44  ![New Core](images/recordings/new_core.gif)