File tree 3 files changed +29
-0
lines changed
examples/AnalogOut/SigmaDelta
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments