-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example outputCWandVoltage.ino changed
Fixed a build error surfacing with ESP32 Arduino Framework >= V5.1.x.
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
cosine waveform (CW) generator and a ~70Hz triangle waveform on DAC channel 2 | ||
setting the DAC output level discretely with function outputVoltage(). | ||
Last updated 2022-06-15, ThJ <[email protected]> | ||
Last updated 2022-09-04, ThJ <[email protected]> | ||
*/ | ||
|
||
#include <Arduino.h> | ||
|
@@ -41,9 +41,9 @@ void loop() { | |
// generates a triangle signal on DAC channel 2 (GPIO pin 26) using | ||
// the full 8-bit scale from 0 to 255 | ||
for (level = 0; level < 256; level++) { | ||
dac2.outputVoltage(level); | ||
dac2.outputVoltage((uint8_t)level); | ||
} | ||
for (level = 255; level >= 0; level--) { | ||
dac2.outputVoltage(level); | ||
dac2.outputVoltage((uint8_t)level); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "DacESP32", | ||
"version": "1.0.7", | ||
"version": "1.0.9", | ||
"platforms": | ||
[ | ||
"espressif32" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=DacESP32 | ||
version=1.0.7 | ||
version=1.0.9 | ||
author=Thomas Jentzsch | ||
maintainer=Thomas Jentzsch <[email protected]> | ||
sentence=Arduino library for using the ESP32 DAC output channels fast and easy. | ||
|