mirror of
https://github.com/cnlohr/lolra.git
synced 2026-06-15 07:19:25 +00:00
Fix a multitude of bugs. Some sillier than others.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# How to use this
|
||||
|
||||
* Display on PB8/PB9 for SCL/SDA
|
||||
* Analog is on PA7
|
||||
|
||||
First, use FFT, then look in the middle for the highest bin @. This is the # of pixels from the left side of the screen you are.
|
||||
|
||||
Then edit ttest.c,
|
||||
|
||||
```
|
||||
g_goertzel_omega_per_sample = (47.0/256) * 3.1415926535*2.0*65536;
|
||||
```
|
||||
|
||||
where 47.0 in this case is the bin # from the FFT.
|
||||
|
||||
Change this, `make test`
|
||||
|
||||
Then copy the values:
|
||||
const int32_t g_goertzel_omega_per_sample = 75599;
|
||||
const int32_t g_goertzel_coefficient = 870257651;
|
||||
const int32_t g_goertzel_coefficient_s = 1963246708;
|
||||
|
||||
into the top of adcgoertzel.c
|
||||
|
||||
|
||||
TODO: TODO: Test HTML values.
|
||||
|
||||
TODO: TODO: g_goertzel_omega_per_sample lokos WRONG.
|
||||
|
||||
Reference in New Issue
Block a user