tjc / arduino Goto Github PK
View Code? Open in Web Editor NEWPersonal Arduino / Leostick sketches
Personal Arduino / Leostick sketches
Hi
I copied the fix_fft.h and fix_fft.cpp file onto the library folder in arduino
I uploaded the example sketch
`#include <fix_fft.h>
char im[128];
char data[128];
void setup(){
Serial.begin(9600);
}
void loop(){
int static i = 0;
static long tt;
int val;
if (millis() > tt){
if (i < 128){
val = analogRead(0);
data[i] = val / 4 - 128;
im[i] = 0;
i++;
}
else{
//this could be done with the fix_fftr function without the im array.
fix_fft(data,im,7,0);
// I am only interessted in the absolute value of the transformation
for (i=0; i< 64;i++){
data[i] = sqrt(data[i] * data[i] + im[i] * im[i]);
}
//do something with the data values 1..64 and ignore im
show_big_bars(data,0);
}
tt = millis();
}
}
/*
this should give an fft with
there is a lot that can be improved:
*/`
But get error
'show_big_bars' was not declared in this scope
How do I debug it??
Pls help!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.