From 176d6011ada27d64996c6b9a93ded48bb2fee4de Mon Sep 17 00:00:00 2001 From: Kizarm Date: Wed, 21 Aug 2024 14:03:50 +0200 Subject: [PATCH] sync amplitude pwm --- V203/hello/generator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/V203/hello/generator.cpp b/V203/hello/generator.cpp index 4c595cf..bbb21ba 100644 --- a/V203/hello/generator.cpp +++ b/V203/hello/generator.cpp @@ -1,8 +1,9 @@ #include "generator.h" +#include "pwmclass.h" #include "utils.h" static constexpr unsigned W_TB = 8u; -static constexpr double AMPL = 3000.0; +static constexpr double AMPL = MAXPWM >> 1; static constexpr int ULEN = 1 << W_TB; static constexpr uint16_t u16_sin (const int x) {