Skip to content

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
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

+9
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

+2
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)