Skip to content

Commit

Permalink
Optimize RAM usage on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrique Condes committed Aug 3, 2017
1 parent f8f2319 commit e30a5ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Examples/FFT_01/FFT_01.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ arduinoFFT FFT = arduinoFFT(); /* Create FFT object */
These values can be changed in order to evaluate the functions
*/
const uint16_t samples = 64; //This value MUST ALWAYS be a power of 2
double signalFrequency = 1000;
double samplingFrequency = 5000;
uint8_t amplitude = 100;
const double signalFrequency = 1000;
const double samplingFrequency = 5000;
const uint8_t amplitude = 100;
/*
These are the input and output vectors
Input vectors receive computed results from FFT
Expand Down
2 changes: 1 addition & 1 deletion Examples/FFT_03/FFT_03.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ These values can be changed in order to evaluate the functions
*/
#define CHANNEL A0
const uint16_t samples = 64; //This value MUST ALWAYS be a power of 2
double samplingFrequency = 200;
const double samplingFrequency = 200;

unsigned int delayTime = 0;

Expand Down

0 comments on commit e30a5ed

Please sign in to comment.