8000 Add ESP32 examples folder and sigma-delta example · rezasurmar/arduino-esp32@a80b2b2 · GitHub
[go: up one dir, main page]

Skip to content
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 a80b2b2

Browse files
committed
Add ESP32 examples folder and sigma-delta example
1 parent 150d2ce commit a80b2b2

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
void setup()
2+
{
3+
//setup channel 0 with frequency 312500 Hz
4+
sigmaDeltaSetup(0, 312500);
5+
//attach pin 18 to channel 0
6+
sigmaDeltaAttachPin(18,0);
7+
//initialize channel 0 to off
8+
sigmaDeltaWrite(0, 0);
9+
}
10+
11+
void loop()
12+
{
13+
//slowly ramp-up the value
14+
//will overflow at 256
15+
static uint8_t i = 0;
16+
sigmaDeltaWrite(0, i++);
17+
delay(100);
18+
}

libraries/ESP32/library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=ESP32
2+
version=1.0
3+
author=Hristo Gochkov, Ivan Grokhtkov
4+
maintainer=Hristo Gochkov <hristo@espressif.com>
5+
sentence=ESP32 sketches examples
6+
paragraph=
7+
category=Other
8+
url=
9+
architectures=esp32

libraries/ESP32/src/dummy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file is here only to silence warnings from Arduino IDE
2+
// Currently IDE doesn't support no-code libraries, like this collection of example sketches.

0 commit comments

Comments
 (0)
0