Skip to content

Commit

Permalink
Merge pull request adafruit#10 from andydoro/master
Browse files Browse the repository at this point in the history
Serial compatibility with Leonardo/Micro/Zero
  • Loading branch information
ladyada committed Mar 8, 2016
2 parents a39d754 + 998276c commit a0c1a6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/sensortest/sensortest.pde
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void displayRange(void)

void setup(void)
{
#ifndef ESP8266
while (!Serial); // for Leonardo/Micro/Zero
#endif
Serial.begin(9600);
Serial.println("Accelerometer Test"); Serial.println("");

Expand Down

0 comments on commit a0c1a6c

Please sign in to comment.