We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cfbf1b commit e973efaCopy full SHA for e973efa
src/audio_spectrogram.c
@@ -132,10 +132,10 @@ int main() {
132
// map the FFT magnitude values to pixel values
133
for (int i = 0; i < (LCD_WIDTH / 2); i++) {
134
// get the current FFT magnitude value
135
- q15_t magntitude = fft_mag_q15[i + FFT_BINS_SKIP];
+ q15_t magnitude = fft_mag_q15[i + FFT_BINS_SKIP];
136
137
// scale it between 0 to 255 to map, so we can map it to a color based on the color map
138
- int color_index = (magntitude / FFT_MAG_MAX) * 255;
+ int color_index = (magnitude / FFT_MAG_MAX) * 255;
139
140
if (color_index > 255) {
141
color_index = 255;
0 commit comments