Skip to content

Commit

Permalink
Example outputCWandVoltage.ino changed
Browse files Browse the repository at this point in the history
Fixed a build error surfacing with ESP32 Arduino Framework >= V5.1.x.
  • Loading branch information
yellobyte committed Sep 4, 2022
1 parent d18b7de commit 3788279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/outputCWandVoltage/outputCWandVoltage.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion library.json
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"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
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.
Expand Down

0 comments on commit 3788279

Please sign in to comment.