Skip to content

Commit

Permalink
Use restructed text formatting in docs.
Browse files Browse the repository at this point in the history
Because they're rst docs, not markdown.
  • Loading branch information
kisom committed Mar 1, 2019
1 parent 60218ad commit 57ac1dc
Showing 1 changed file with 46 additions and 55 deletions.
101 changes: 46 additions & 55 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,68 +99,59 @@ to be working out well for the projects I've been using it in.
Overhead
--------

As a test, I've compiled a basic Arduino sketch for the Feather M0:

```c++
#include <Arduino.h>
void
setup()
{
Serial.begin(9600);
while (!Serial) ;
Serial.println("boot OK");
}
void
loop()
{
}
```

Building this with PlatformIO shows the following sizes:

```
Building .pioenvs/adafruit_feather_m0/firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [= ] 8.0% (used 2620 bytes from 32768 bytes)
PROGRAM: [ ] 4.2% (used 10992 bytes from 262144 bytes)
```

and the equivalent using the featherlib library:

```c++
```c++
#include <Arduino.h>
As a test, I've compiled a basic Arduino sketch for the Feather M0::

#include <Arduino.h>
void
setup()
{
Serial.begin(9600);
while (!Serial) ;
Serial.println("boot OK");
}
void
loop()
{
}

void
setup()
{
Serial.begin(9600);
while (!Serial) ;
Serial.println("boot OK");
}
Building this with PlatformIO shows the following sizes::

Building .pioenvs/adafruit_feather_m0/firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [= ] 8.0% (used 2620 bytes from 32768 bytes)
PROGRAM: [ ] 4.2% (used 10992 bytes from 262144 bytes)

void
loop()
{
and the equivalent using the featherlib library::

}
```
#include <Arduino.h>
void
setup()
{
Serial.begin(9600);
while (!Serial) ;
Serial.println("boot OK");
}
void
loop()
{
}

yields the following sizes:
yields the following sizes::

```
Building .pioenvs/adafruit_feather_m0/firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [= ] 8.1% (used 2648 bytes from 32768 bytes)
PROGRAM: [= ] 5.2% (used 13568 bytes from 262144 bytes)
```
Building .pioenvs/adafruit_feather_m0/firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [= ] 8.1% (used 2648 bytes from 32768 bytes)
PROGRAM: [= ] 5.2% (used 13568 bytes from 262144 bytes)

The additional program space is taken up by the random number
seeding. It's worse in this case because a fair amount of additional
Expand Down

0 comments on commit 57ac1dc

Please sign in to comment.