@@ -59,8 +59,8 @@ <h2 data-aos="fade-up">1. Installation</h2>
5959 < div class ="feature-card " data-aos ="fade-right ">
6060 < h3 > PlatformIO (Recommended)</ h3 >
6161 < p > Add the following to your < code > platformio.ini</ code > file:</ p >
62- < pre > < code > lib_deps =
63- Chamath-Adithya/WiBLE@^2.0.0</ code > </ pre >
62+ < pre > < code > < span class =" code-keyword " > lib_deps</ span > =
63+ Chamath-Adithya/WiBLE@^< span class =" code-string " > 2.0.0</ span > </ code > </ pre >
6464 </ div >
6565
6666 < div class ="feature-card " data-aos ="fade-left ">
@@ -78,9 +78,9 @@ <h2 data-aos="fade-up">2. Partition Scheme (Critical!)</h2>
7878
7979 < div class ="feature-card " style ="margin-top: 2rem; " data-aos ="fade-up ">
8080 < h3 > PlatformIO Configuration</ h3 >
81- < pre > < code > board_build.partitions = huge_app.csv
82- ; OR if you need OTA:
83- ; board_build.partitions = min_spiffs.csv</ code > </ pre >
81+ < pre > < code > < span class =" code-keyword " > board_build.partitions</ span > = < span class =" code-string " > huge_app.csv</ span >
82+ < span class =" code-comment " > ; OR if you need OTA:</ span >
83+ < span class =" code-comment " > ; board_build.partitions = min_spiffs.csv</ span > </ code > </ pre >
8484 </ div >
8585 </ div >
8686
@@ -89,23 +89,23 @@ <h2 data-aos="fade-up">3. Hello World</h2>
8989 < p data-aos ="fade-up "> Copy this code into your < code > main.cpp</ code > or < code > .ino</ code > file:</ p >
9090
9191 < div class ="code-window " style ="margin-top: 2rem; " data-aos ="fade-up ">
92- < pre > < code > #include <WiBLE.h>
92+ < pre > < code > < span class =" code-keyword " > #include</ span > << span class =" code-type " > WiBLE.h</ span > >
9393
94- WiBLE provisioner;
94+ < span class =" code-type " > WiBLE</ span > provisioner;
9595
96- void setup() {
97- Serial.begin( 115200);
96+ < span class =" code-keyword " > void</ span > < span class =" code-function " > setup</ span > () {
97+ < span class =" code-function " > Serial.begin</ span > ( < span class =" code-string " > 115200</ span > );
9898
99- ProvisioningConfig config;
100- config.deviceName = " My-ESP32";
101- config.securityLevel = SecurityLevel:: SECURE;
99+ < span class =" code-type " > ProvisioningConfig</ span > config;
100+ config.deviceName = < span class =" code-string " > " My-ESP32"</ span > ;
101+ config.securityLevel = < span class =" code-type " > SecurityLevel</ span > :: < span class =" code-keyword " > SECURE</ span > ;
102102
103- provisioner.begin(config);
104- provisioner.startProvisioning();
103+ provisioner.< span class =" code-function " > begin</ span > (config);
104+ provisioner.< span class =" code-function " > startProvisioning</ span > ();
105105}
106106
107- void loop() {
108- provisioner.loop();
107+ < span class =" code-keyword " > void</ span > < span class =" code-function " > loop</ span > () {
108+ provisioner.< span class =" code-function " > loop</ span > ();
109109}</ code > </ pre >
110110 </ div >
111111 </ div >
0 commit comments