blotfi / ESP32-Radio-with-Spectrum-analyzer

Web Radio ESP32 - VS1053b - ILI9341 with Spectrum analyzer
23 stars 6 forks source link

not used the patched plugin? #7

Open donnersm opened 3 years ago

donnersm commented 3 years ago

I noticed that in your patches.h there are actually two patches,

  1. plugin
  2. analyzer however, in your program you never install the first plugin...why? I am asking because it looks like i need it, a side from the onscreen spectrum analyzer, i would like to include a VU meter as well... the vu meter is available in the Patch. IF i am not mistaken, that is acutally the plugin array in your patches.h.

Any idea if i can use both at the same time? and is there a special trick to load them because simply activating the line of code that you commented out doesn't work, in fact it makes my vs1053 freeze

    //LoadUserCode(plugin, PLUGIN_SIZE);
LoadUserCode(analizer, ANALIZER_SIZE);
blotfi commented 3 years ago

I don't remember exactly, I didn't worked on this project from the date I posted it. I know that there are parts that are not compatible with all of 10xx devices and also that the code is compiled especially

I had a look at my notes and yes It works without the patch of 1053b //LoadUserCode(plugin, PLUGIN_SIZE); LoadUserCode(analizer, ANALIZER_SIZE); and if you put it it freezes, I don't remember but I think that the patch is already included in the analizer code

you can have more details for Plugins and patches for VS1053B : http://www.vlsi.fi/en/support/software/vs10xxplugins.html http://www.vlsi.fi/en/support/software/vs10xxpatches.html

If you want a vu meter you can simply use the already computed FFT and add them for one output

best regards Lotfi