Skip to content

Commit 551e422

Browse files
eronikime-no-dev
authored andcommitted
Fix typos (espressif#95)
1 parent c336989 commit 551e422

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,44 +85,44 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).
8585
- Download and install [esp-idf](https://github.com/espressif/esp-idf)
8686
- Create blank idf project (from one of the examples)
8787
- in the project folder, create a folder called components and clone this repository inside
88-
88+
8989
```bash
9090
mkdir -p components && \
9191
cd components && \
9292
git clone https://github.com/espressif/arduino-esp32.git arduino && \
93-
cd.. && \
93+
cd .. && \
9494
make menuconfig
9595
```
9696
- ```make menuconfig``` has some Arduino options
9797
- "Autostart Arduino setup and loop on boot"
9898
- If you enable this options, your main.cpp should be formated like any other sketch
99-
99+
100100
```arduino
101101
//file: main.cpp
102102
#include "Arduino.h"
103-
103+
104104
void setup(){
105105
Serial.begin(115200);
106106
}
107-
107+
108108
void loop(){
109109
Serial.println("loop");
110110
delay(1000);
111111
}
112112
```
113113
- Else you need to implement ```app_main()``` and call ```initArduino();``` in it.
114-
114+
115115
Keep in mind that setup() and loop() will not be called in this case
116-
116+
117117
```arduino
118118
//file: main.cpp
119119
#include "Arduino.h"
120120
extern "C" void initArduino();
121-
121+
122122
extern "C" void app_main()
123123
{
124124
initArduino();
125-
pinMode(4, OUPUT);
125+
pinMode(4, OUTPUT);
126126
digitalWrite(4, HIGH);
127127
//do your own thing
128128
}

0 commit comments

Comments
 (0)