From 0bcc06449adf83df0465428cb8bcd9457aac618b Mon Sep 17 00:00:00 2001 From: Daniel H Date: Sun, 30 Apr 2023 16:03:56 +0200 Subject: [PATCH] small noise reduction fix --- pico-am.ino | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pico-am.ino b/pico-am.ino index 66770eb..4a90a79 100644 --- a/pico-am.ino +++ b/pico-am.ino @@ -102,9 +102,8 @@ void setup() { //float m = 0; void loop() { - float v = ((float) analogRead(26) / 4096.0 * 7 * 100.0); + float v = ((float) analogRead(26) / 4096.0 * 6 * 100.0 + 10); pwm->setPWM_DCPercentage_manual(15, v); - v *= 2; led->setPWM_DCPercentage_manual(LED_BUILTIN, v); //n = n + 1; //if(m < v) { m = v; } @@ -115,6 +114,3 @@ void loop() { //m = 0; //} } - - -