Skip to content

Commit

Permalink
Update the hello example in the docs.
Browse files Browse the repository at this point in the history
Due to a copy-paste error, the hello program using featherlib
was actually the plain Arduino version.
  • Loading branch information
kisom committed Mar 1, 2019
1 parent 57ac1dc commit 8662d6a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,18 @@ Building this with PlatformIO shows the following sizes::
and the equivalent using the featherlib library::

#include <Arduino.h>
#include <feather/feather.h>
FeatherM0 board;
void
setup()
{
Serial.begin(9600);
while (!Serial) ;
Serial.println("boot OK");
board.setup(9600, true);
Serial.println("BOOT OK");
}
Expand Down

0 comments on commit 8662d6a

Please sign in to comment.