Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Initialize the Serial
  • Loading branch information
0x1306e6d committed Oct 2, 2019
commit cd9bf96cc4bf0ff9baaea78ac1bf81f653adfa1a
10 changes: 10 additions & 0 deletions arduino/arduino.ino
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#include "config.h"

void initSerial()
{
// Start serial and initialize stdout
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.println("Serial.begin OK");
}

// the setup function runs once when you press reset or power the board
void setup()
{
initSerial();

// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
Expand Down