Skip to content

Commit

Permalink
Update outputVoltage.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
yellobyte committed Aug 30, 2022
1 parent 2a503ba commit d18b7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/outputVoltage/outputVoltage.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This sketch activates only DAC channel 1 and generates a sawtooth waveform
with a very low frequency (~4Hz).
Last updated 2022-06-09, ThJ <[email protected]>
Last updated 2022-08-30, ThJ <[email protected]>
*/

#include <Arduino.h>
Expand All @@ -28,7 +28,7 @@ void loop() {

// outputs the full 8-bit scale from 0 to 255
for (level = 0; level < 256; level++) {
dac1.outputVoltage(level);
dac1.outputVoltage((uint8_t)level);
delay(1);
}
}

0 comments on commit d18b7de

Please sign in to comment.