Skip to content

Commit

Permalink
Merge pull request #2241 from montoyamoraga/patch-1
Browse files Browse the repository at this point in the history
fix typo, it said sawtooth, it should say sine
  • Loading branch information
karlsoderby authored Oct 21, 2024
2 parents 1bf15e7 + 2681f35 commit fa0d46f
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 fa0d46f

Please sign in to comment.