From 5ef4217379a508fea3544f19af51e20655e0efc0 Mon Sep 17 00:00:00 2001 From: "mikolaj.s" <228592@edu.p.lodz.pl> Date: Mon, 6 Jun 2022 11:26:00 +0200 Subject: [PATCH] Dodano static do wektora z sinusem i wartosciami do PWM --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index f8b0c03..51215b4 100644 --- a/main.cpp +++ b/main.cpp @@ -12,12 +12,12 @@ volatile uint8_t sampleReady = 0; //zmienna kotrolująca możliwość podania no volatile uint8_t adcVal = 0; volatile uint8_t effect = REVERB; //wybrany efekt volatile uint32_t counter = 0; -const uint8_t sine [101] = {0,0,0,0,1,1,2,2,3,4,5,6,7,8,10,11,12,14,16,17,19,21,23,25,27,29,32,34,36,39,41,44,46,49, +static const uint8_t sine [101] = {0,0,0,0,1,1,2,2,3,4,5,6,7,8,10,11,12,14,16,17,19,21,23,25,27,29,32,34,36,39,41,44,46,49, 52,55,57,60,63,66,69,72,75,78,81,84,87,91,94,97,100,103,106,109,113,116,119,122,125,128,131,134,137,140,143,145,148, 151,154,156,159,161,164,166,168,171,173,175,177,179,181,183,184,186,188,189,190,192,193,194,195,196,197,198,198,199, 199,200,200,200,200}; volatile uint8_t effectSetting = 5; -const uint8_t effectSettingVector [9] = {0, 5, 15, 30, 55, 90, 130, 180, 255}; +static const uint8_t effectSettingVector [9] = {0, 5, 15, 30, 55, 90, 130, 180, 255}; volatile uint8_t encoderDir = 0; //0 - w lewo, 1 - w prawo volatile uint8_t encoderServed = 1;