Skip to content

Commit 748d009

Browse files
authored
feat(hw_cdc): create main.cpp
Adds the minimum Arduino Sketch that will print "Hello World!" in the HW Serial USB CDC port.
1 parent ab2f540 commit 748d009

File tree

1 file changed

+10
-0
lines changed
  • idf_component_examples/hw_cdc_hello_world/main

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <Arduino.h>
2+
3+
void setup() {
4+
Serial.begin(); // USB CDC doens't need a baud rate
5+
}
6+
7+
void loop() {
8+
Serial.println("Hello world!");
9+
delay(1000);
10+
}

0 commit comments

Comments
 (0)