mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Fix invalid example with converting INO to CPP in the Atom docs // Resolve #757
This commit is contained in:
@ -381,11 +381,11 @@ For example, we have the next ``Demo.ino`` file:
|
|||||||
|
|
||||||
.. code-block:: cpp
|
.. code-block:: cpp
|
||||||
|
|
||||||
void function setup () {
|
void setup () {
|
||||||
someFunction(13);
|
someFunction(13);
|
||||||
}
|
}
|
||||||
|
|
||||||
void function loop() {
|
void loop() {
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,11 +406,11 @@ The final ``Demo.cpp``:
|
|||||||
|
|
||||||
void someFunction(int num);
|
void someFunction(int num);
|
||||||
|
|
||||||
void function setup () {
|
void setup () {
|
||||||
someFunction(13);
|
someFunction(13);
|
||||||
}
|
}
|
||||||
|
|
||||||
void function loop() {
|
void loop() {
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user