Skip to content

Commit

Permalink
fix typo, it said sawtooth, it should say sine
Browse files Browse the repository at this point in the history
later in the tutorial the sawtooth wave is used.
  • Loading branch information
montoyamoraga authored Oct 14, 2024
1 parent 7672685 commit 2681f35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ For example when dimming an LED, you can freely use a PWM enabled digital pin as
However this will not always be the case, and for many uses you will need to use a genuine analog output to get your desired results. One such case is in audio purposes, where a PWM output simply will not give the same quality of sound as a genuine analog output, and requires some fiddling to work in the first place.

## Code
The code for this tutorial is split in two parts, one main sketch and a header file containing a pre-generated sawtooth-waveform.
The code for this tutorial is split in two parts, one main sketch and a header file containing a pre-generated sine waveform.

With this sketch, we have pre-generated a sine waveform. You could also dynamically generate it either at the beginning of your sketch or during, but doing so would be less efficient without gaining any performance. So going this route is the best practice.

Expand Down

0 comments on commit 2681f35

Please sign in to comment.