Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d28d7ea

Browse filesBrowse files
committed
use DebugUtils in main app
1 parent 6e42ca8 commit d28d7ea
Copy full SHA for d28d7ea

File tree

Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed

‎examples/rgb/main.cpp

Copy file name to clipboardExpand all lines: examples/rgb/main.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ void setup()
1212

1313
void loop()
1414
{
15-
serialPrintLn("Rot");
15+
serialPrintLn("red");
1616
neopixelWrite(PIN_NEOPIXEL, 255, 0, 0);
1717
delay(1000);
1818

19-
// serialPrintLn("Grün");
19+
serialPrintLn("green");
2020
neopixelWrite(PIN_NEOPIXEL, 0, 255, 0);
2121
delay(1000);
2222

23-
// serialPrintLn("Blau");
23+
serialPrintLn("blue");
2424
neopixelWrite(PIN_NEOPIXEL, 0, 0, 255);
2525
delay(1000);
2626
}

‎src/main.cpp

Copy file name to clipboard
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#include <Arduino.h>
2+
#include <DebugUtils.h>
23

34
// pinouts: https://github.com/espressif/arduino-esp32/blob/master/variants/esp32c6/pins_arduino.h
45

56
// see https://github.com/wuxx/nanoESP32-C6
67

78
void setup()
89
{
9-
Serial.begin(115200);
10-
while (!Serial)
11-
;
10+
serialBegin(115200);
1211
}
1312

1413
void loop()
@@ -17,6 +16,7 @@ void loop()
1716
analogSetAttenuation(ADC_0db);
1817

1918
// // blink
19+
// serialPrintLn("green");
2020
// neopixelWrite(PIN_NEOPIXEL, 0, 255, 0);
2121
// delay(1000);
2222
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.